mirror of
https://github.com/tenrok/BBob.git
synced 2026-05-30 15:24:05 +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 = {
|
||||
container: PropTypes.node,
|
||||
children: PropTypes.node.isRequired,
|
||||
plugins: PropTypes.arrayOf(Function),
|
||||
plugins: PropTypes.arrayOf(PropTypes.func),
|
||||
componentProps: PropTypes.shape({
|
||||
className: PropTypes.string,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user