2
0
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:
Greg Venech
2019-06-28 04:00:35 -04:00
committed by Nikolay Kostyurin
parent 09ff9af9a2
commit 19d7ff20f1
+1 -1
View File
@@ -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,
}),