Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
senxation committed Nov 1, 2017
2 parents e0e9b2b + d50fc64 commit fdaec5c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alt-container",
"version": "1.0.2",
"version": "1.1.1",
"description": "A flux container for alt",
"main": "lib/AltContainer.js",
"scripts": {
Expand Down 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 fdaec5c

Please sign in to comment.