Fix warning propTypes
This commit is contained in:
parent
c10dab2a02
commit
4401261e5e
|
@ -38,7 +38,10 @@ Card.defaultProps = {
|
|||
|
||||
Card.propTypes = {
|
||||
title: PropTypes.string.isRequired,
|
||||
value: PropTypes.string,
|
||||
value: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.number,
|
||||
]),
|
||||
bgColor: PropTypes.string,
|
||||
textColor: PropTypes.string,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue