Web: Components: fixed badge fontSize props number to string
This commit is contained in:
parent
1d475151c1
commit
5f6d63f941
@ -16,7 +16,7 @@ storiesOf('Components|Badge', module)
|
||||
number={number('number', 10)}
|
||||
backgroundColor={color('backgroundColor', '#ED7309')}
|
||||
color={color('color', '#FFFFFF')}
|
||||
fontSize={number('fontSize', 11)}
|
||||
fontSize={text('fontSize', '11px')}
|
||||
fontWeight={number('fontWeight', 800)}
|
||||
borderRadius={text('borderRadius', '11px')}
|
||||
padding={text('padding', '0 5px')}
|
||||
|
@ -41,7 +41,7 @@ Badge.propTypes = {
|
||||
number: PropTypes.number,
|
||||
backgroundColor: PropTypes.string,
|
||||
color: PropTypes.string,
|
||||
fontSize: PropTypes.number,
|
||||
fontSize: PropTypes.string,
|
||||
fontWeight: PropTypes.number,
|
||||
borderRadius: PropTypes.string,
|
||||
padding: PropTypes.string,
|
||||
@ -56,7 +56,7 @@ Badge.defaultProps = {
|
||||
number: 0,
|
||||
backgroundColor: '#ED7309',
|
||||
color: '#FFFFFF',
|
||||
fontSize: 11,
|
||||
fontSize: "11px",
|
||||
fontWeight: 800,
|
||||
borderRadius: '11px',
|
||||
padding: '0 5px',
|
||||
|
Loading…
Reference in New Issue
Block a user