Skip to content

Commit d11a8f8

Browse files
committed
make label not required since some links may only be an icon
1 parent d58682a commit d11a8f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Link/Link.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ Link.propTypes = {
2121
addClass: PropTypes.string,
2222
href: PropTypes.string.isRequired,
2323
icon: PropTypes.string,
24-
label: PropTypes.string.isRequired,
24+
label: PropTypes.string,
2525
style: PropTypes.shape({}),
2626
}
2727

2828
Link.defaultProps = {
2929
addClass: '',
3030
icon: '',
31+
label: '',
3132
style: {},
3233
}
3334

0 commit comments

Comments
 (0)