Skip to content

Commit

Permalink
Merge pull request #8 from batata-frita/add-properTypes-support
Browse files Browse the repository at this point in the history
proper propTypes with properTypes
  • Loading branch information
magic-m-johnson authored May 16, 2018
2 parents a9bc492 + d84c669 commit 9d19126
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ node_js:
- "8.7"
script:
- npm test
- npm dist
- npm run dist
2 changes: 1 addition & 1 deletion src/Lekplats/FixtureEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import view from 'ramda/src/view'
import styles from './styles.scss'

export default function FixtureEditor ({ Component, fixture, onFixtureChange }) {
const propTypes = introspect(Component.propTypes || {})
const propTypes = Component.properTypes || introspect(Component.propTypes || {})
const flattenedPropTypes = flattenPropTypes(propTypes)
const groupedPropTypes = groupPropTypes(flattenedPropTypes)
return (
Expand Down

0 comments on commit 9d19126

Please sign in to comment.