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 Jun 6, 2024
1 parent 53980a8 commit bb6aadc
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 bb6aadc

Please # to comment.