Skip to content

Commit

Permalink
Merge pull request #10 from brucewpaul/master
Browse files Browse the repository at this point in the history
Update to use external prop-types package
  • Loading branch information
goatslacker authored Aug 29, 2017
2 parents 9035501 + 2e84dfc commit a2d3585
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"homepage": "https://github.com/altjs/container",
"dependencies": {
"object.assign": "^4.0.1"
"object.assign": "^4.0.1",
"prop-types": "^15.5.10"
},
"devDependencies": {
"alt": "0.17.4",
Expand Down
5 changes: 3 additions & 2 deletions src/AltContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
* Full docs available at http://goatslacker.github.io/alt/
*/
import React from 'react'
import PropTypes from 'prop-types';
import assign from 'object.assign'

const id = it => it
Expand Down Expand Up @@ -116,11 +117,11 @@ const getStateFromStores = (props) => {
// what about propTypes?
class AltContainer extends React.Component {
static contextTypes = {
flux: React.PropTypes.object,
flux: PropTypes.object,
}

static childContextTypes = {
flux: React.PropTypes.object,
flux: PropTypes.object,
}

getChildContext() {
Expand Down
5 changes: 3 additions & 2 deletions src/mixinContainer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*eslint-disable*/
import assign from 'object.assign'
import PropTypes from 'prop-types';

const id = it => it

Expand All @@ -23,11 +24,11 @@ const mixinContainer = (React) => {

return {
contextTypes: {
flux: React.PropTypes.object
flux: PropTypes.object
},

childContextTypes: {
flux: React.PropTypes.object
flux: PropTypes.object
},

getChildContext() {
Expand Down

0 comments on commit a2d3585

Please sign in to comment.