Skip to content

Commit

Permalink
fix(prop-types): add bool option to the prop-types to use it with col…
Browse files Browse the repository at this point in the history
… and row props (#142)
  • Loading branch information
ivanbanov committed Nov 2, 2020
1 parent f25ca82 commit 3a835ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/prop-types/src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { oneOfType, number, string, object } from 'prop-types'
import { oneOfType, number, string, object, bool } from 'prop-types'

export function getSystemPropTypes(system) {
if (!system) return {}
return system.meta.props.reduce((obj, prop) => {
obj[prop] = oneOfType([number, string, object])
obj[prop] = oneOfType([number, string, object, bool])
return obj
}, {})
}

0 comments on commit 3a835ba

Please sign in to comment.