mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-20 20:00:33 +03:00
fix(react): fix broken prop type definition (#27)
You need to pass a valid prop checking function to `PropTypes.arrayOf`. This caused an error to be thrown in development for me: ``` Warning: Failed prop type: Unexpected token function ```
This commit is contained in:
committed by
Nikolay Kostyurin
parent
09ff9af9a2
commit
19d7ff20f1
@@ -21,7 +21,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|||||||
Component.propTypes = {
|
Component.propTypes = {
|
||||||
container: PropTypes.node,
|
container: PropTypes.node,
|
||||||
children: PropTypes.node.isRequired,
|
children: PropTypes.node.isRequired,
|
||||||
plugins: PropTypes.arrayOf(Function),
|
plugins: PropTypes.arrayOf(PropTypes.func),
|
||||||
componentProps: PropTypes.shape({
|
componentProps: PropTypes.shape({
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user