Skip to content

Commit

Permalink
Merge pull request #25619 from tsvanharen/fix/issue-24305
Browse files Browse the repository at this point in the history
UI: Remove `defaultProps` from `Link` component
  • Loading branch information
JReinhold authored Jan 22, 2024
2 parents de40da6 + dac1fd9 commit f2d311b
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions code/ui/components/src/components/typography/link/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,13 @@ export interface LinkProps extends LinkInnerProps, LinkStylesProps {
}

export const Link: FC<LinkProps & AProps> = ({
cancel,
cancel = true,
children,
onClick,
withArrow,
containsIcon,
className,
onClick = undefined,
withArrow = false,
containsIcon = false,
className = undefined,
style = undefined,
...rest
}) => (
<A
Expand All @@ -203,12 +204,3 @@ export const Link: FC<LinkProps & AProps> = ({
</LinkInner>
</A>
);

Link.defaultProps = {
cancel: true,
className: undefined,
style: undefined,
onClick: undefined,
withArrow: false,
containsIcon: false,
};

0 comments on commit f2d311b

Please sign in to comment.