mirror of
https://github.com/franjsco/covid19-campania
synced 2025-05-23 03:54:12 +02:00
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…
x
Reference in New Issue
Block a user