Skip to content

Commit

Permalink
fix: diff
Browse files Browse the repository at this point in the history
  • Loading branch information
shuowu-okta committed Dec 8, 2023
1 parent 7d2068e commit d63d10b
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions packages/odyssey-react-mui/src/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,28 +63,26 @@ const Link = ({
testId,
variant,
onClick,
}: LinkProps) => {
return (
<MuiLink
data-se={testId}
href={href}
rel={rel}
target={target}
variant={variant}
onClick={onClick}
>
{icon && <span className="Link-icon">{icon}</span>}
}: LinkProps) => (
<MuiLink
data-se={testId}
href={href}
rel={rel}
target={target}
variant={variant}
onClick={onClick}
>
{icon && <span className="Link-icon">{icon}</span>}

{children}
{children}

{target === "_blank" && (
<span className="Link-indicator" role="presentation">
<ExternalLinkIcon />
</span>
)}
</MuiLink>
);
};
{target === "_blank" && (
<span className="Link-indicator" role="presentation">
<ExternalLinkIcon />
</span>
)}
</MuiLink>
);

const MemoizedLink = memo(Link);

Expand Down

0 comments on commit d63d10b

Please sign in to comment.