Fix PropTypes

This commit is contained in:
afc163 2015-09-01 17:19:31 +08:00
parent 3165da4246
commit 034b561948

View File

@ -39,7 +39,10 @@ AntBadge.defaultProps = {
};
AntBadge.propTypes = {
count: React.PropTypes.number,
count: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
]),
dot: React.PropTypes.bool
};