Skip to content

Commit

Permalink
fix: link icon wasn't optional
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGhadyani-Okta committed Oct 10, 2022
1 parent 7ccc1a4 commit 567da0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/odyssey-react-mui/src/components/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const Link = forwardRef<HTMLLinkElement | HTMLAnchorElement, LinkProps>(
const { icon, children, target } = props;
return (
<MuiLink {...props}>
<span className="Link-icon">{icon}</span>
{icon && <span className="Link-icon">{icon}</span>}
{children}
{target === "_blank" && (
<span className="Link-indicator" role="presentation">
Expand Down

0 comments on commit 567da0c

Please sign in to comment.