Skip to content

Commit

Permalink
Change: Don't require the to prop for Link component
Browse files Browse the repository at this point in the history
Actually it is optional and it is set to an empty string by default
already.
  • Loading branch information
bjoernricks committed Apr 29, 2024
1 parent a9f7649 commit 87c6a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/components/link/link.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Link.propTypes = {
anchor: PropTypes.string,
filter: PropTypes.oneOfType([PropTypes.filter, PropTypes.string]),
query: PropTypes.object,
to: PropTypes.string.isRequired,
to: PropTypes.string,
};

Link = styled(withTextOnly(Link))`
Expand Down

0 comments on commit 87c6a40

Please sign in to comment.