Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.

Commit

Permalink
chore(prop-types): update propTypes to use new package
Browse files Browse the repository at this point in the history
  • Loading branch information
David Zukowski committed Jun 12, 2017
1 parent 025e261 commit d2cca31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -19,7 +19,8 @@
"license": "MIT",
"dependencies": {
"hoist-non-react-statics": "^1.2.0",
"object-assign": "^4.1.0"
"object-assign": "^4.1.0",
"prop-types": "^15.5.10"
},
"devDependencies": {
"babel": "^6.5.2",
Expand Down
2 changes: 1 addition & 1 deletion src/propTypes.js
@@ -1,4 +1,4 @@
import { PropTypes } from 'react'
import PropTypes from 'prop-types'

export default {
model: PropTypes.object.isRequired,
Expand Down
3 changes: 2 additions & 1 deletion src/reformed.js
@@ -1,12 +1,13 @@
import React from 'react'
import PropTypes from 'prop-types'
import assign from 'object-assign'
import hoistNonReactStatics from 'hoist-non-react-statics'
import getComponentName from './_internal/getComponentName'

const makeWrapper = (middleware) => (WrappedComponent) => {
class FormWrapper extends React.Component {
static propTypes = {
initialModel: React.PropTypes.object,
initialModel: PropTypes.object,
}

constructor (props, ctx) {
Expand Down

0 comments on commit d2cca31

Please sign in to comment.