Web: Components: fixed badge fontSize props number to string

This commit is contained in:
Nikita Gopienko 2019-12-10 09:16:26 +03:00
parent 1d475151c1
commit 5f6d63f941
2 changed files with 3 additions and 3 deletions

View File

@ -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')}

View File

@ -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',