Skip to content

Commit

Permalink
chore: Hide external link icons by default
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Replaced `hideExternalIcon` by `showExternalIcon`
with opposite effects.
  • Loading branch information
franky47 committed Apr 9, 2020
1 parent 984ab13 commit b7e7590
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ export const RouteLink: React.FC<RouteLinkProps> = ({
// --

export interface OutgoingLinkProps extends ChakraLinkProps {
hideExternalIcon?: boolean
showExternalIcon?: boolean
}

export const OutgoingLink: React.FC<OutgoingLinkProps> = ({
children,
hideExternalIcon = false,
showExternalIcon = false,
...props
}) => {
return (
<ChakraLink {...props}>
{children}
{!hideExternalIcon && (
{showExternalIcon && (
<Icon
name="external-link"
mx="2px"
Expand Down

0 comments on commit b7e7590

Please sign in to comment.