Skip to content

Commit 6639c6c

Browse files
committed
more accurate propType definition of Header.linkColor
1 parent 69afdc2 commit 6639c6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compounds/Header/Header.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ Header.propTypes = {
4848
signIn: PropTypes.func.isRequired,
4949
signOut: PropTypes.func.isRequired,
5050
}).isRequired,
51-
linkColor: PropTypes.string,
51+
linkColor: PropTypes.oneOf([
52+
'primary', 'secondary', 'success', 'info', 'warning', 'danger', 'light', 'dark', 'black', 'white'
53+
]),
5254
logo: PropTypes.shape({
5355
src: PropTypes.string.isRequired,
5456
alt: PropTypes.string,

0 commit comments

Comments
 (0)