Skip to content

Commit

Permalink
(fix):Include prop-type package
Browse files Browse the repository at this point in the history
  • Loading branch information
cht8687 committed Aug 2, 2017
1 parent ccd5cba commit a39ccee
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@
"tap-xunit": "^1.3.1",
"tape": "^4.5.1",
"webpack": "^1.11.0",
"webpack-dev-server": "^1.10.1"
"webpack-dev-server": "^1.16.5"
},
"dependencies": {
"prop-types": "^15.5.10",
"randomstring": "^1.1.3"
}
}
3 changes: 2 additions & 1 deletion src/ReactExpandableListView.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import ListHeader from './lib/ListHeader'
import ListItemsManager from './lib/ListItemsManager'
import { Motion, spring } from 'react-motion'
import PropTypes from 'prop-types'

export default class ReactListView extends Component {
static propTypes = {
Expand Down
3 changes: 2 additions & 1 deletion src/lib/ListHeader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

export default class ListHeader extends Component {
static propTypes = {
Expand Down
5 changes: 3 additions & 2 deletions src/lib/ListItem.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React from 'react'
import PropTypes from 'prop-types'

export default class ListItem extends React.Component {
static get propTypes() {
return {
children: React.PropTypes.object,
isReactComponent: React.PropTypes.bool
children: PropTypes.object,
isReactComponent: PropTypes.bool
};
}

Expand Down
3 changes: 2 additions & 1 deletion src/lib/ListItemsManager.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import ListItem from './ListItem'
import PropTypes from 'prop-types'

export default class ListItemsManager extends Component {
static propTypes = {
Expand Down

0 comments on commit a39ccee

Please sign in to comment.