Fix warning propTypes

This commit is contained in:
Francesco Esposito 2020-04-07 20:51:37 +02:00
parent c10dab2a02
commit 4401261e5e
1 changed files with 4 additions and 1 deletions

View File

@ -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,
};