Skip to content

Commit

Permalink
updated the data-testid on the NetworkLink Component
Browse files Browse the repository at this point in the history
  • Loading branch information
radumojic committed Nov 6, 2023
1 parent f8edb61 commit 2fa4777
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/NetworkLink/NetworkLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const NetworkLink = ({
to,
children,
preventScrollReset = false,
'data-testid': dataTestId,
...rest
}: NetworkLinkPropsType) => {
const { id: activeNetworkId } = useSelector(activeNetworkSelector);
Expand All @@ -32,7 +33,11 @@ export const NetworkLink = ({
};

return (
<Link {...props} preventScrollReset={preventScrollReset}>
<Link
{...props}
preventScrollReset={preventScrollReset}
{...(dataTestId ? { 'data-testid': dataTestId } : {})}
>
{children}
</Link>
);
Expand Down

0 comments on commit 2fa4777

Please sign in to comment.