diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-11-19 14:29:04 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-11-19 14:29:04 +0100 |
commit | d2f51aa66b50cd058d8b2beafd5da70c84a47d95 (patch) | |
tree | f549dfea80a543ed17fcb03b5553a83d3848acbb /src/web/js/components/RightPanel.react.js | |
parent | Fixed problem with version of GLIBC_PRIVATE not defined in file libc.so.6 wit... (diff) | |
parent | Updated Python runtime to 3.6.2 on Heroku. (diff) | |
download | newspipe-d2f51aa66b50cd058d8b2beafd5da70c84a47d95.tar.gz newspipe-d2f51aa66b50cd058d8b2beafd5da70c84a47d95.tar.bz2 newspipe-d2f51aa66b50cd058d8b2beafd5da70c84a47d95.zip |
Merge branch 'master' of github.com:JARR-aggregator/JARR
Diffstat (limited to 'src/web/js/components/RightPanel.react.js')
-rw-r--r-- | src/web/js/components/RightPanel.react.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/web/js/components/RightPanel.react.js b/src/web/js/components/RightPanel.react.js index 60ef426e..6384cdfe 100644 --- a/src/web/js/components/RightPanel.react.js +++ b/src/web/js/components/RightPanel.react.js @@ -1,9 +1,11 @@ var React = require('react'); +var createReactClass = require('create-react-class'); var Col = require('react-bootstrap/lib/Col'); var Glyphicon = require('react-bootstrap/lib/Glyphicon'); var Button = require('react-bootstrap/lib/Button'); var ButtonGroup = require('react-bootstrap/lib/ButtonGroup'); var Modal = require('react-bootstrap/lib/Modal'); +var PropTypes = require('prop-types'); var RightPanelActions = require('../actions/RightPanelActions'); var RightPanelStore = require('../stores/RightPanelStore'); @@ -11,7 +13,7 @@ var MenuStore = require('../stores/MenuStore'); var JarrTime = require('./time.react'); var PanelMixin = { - propTypes: {obj: React.PropTypes.object.isRequired}, + propTypes: {obj: PropTypes.object.isRequired}, getInitialState: function() { return {edit_mode: false, obj: this.props.obj, showModal: false}; }, @@ -164,7 +166,7 @@ var PanelMixin = { }, }; -var Article = React.createClass({ +var Article = createReactClass({ mixins: [PanelMixin], isEditable: function() {return false;}, isRemovable: function() {return true;}, @@ -183,7 +185,7 @@ var Article = React.createClass({ } }); -var Feed = React.createClass({ +var Feed = createReactClass({ mixins: [PanelMixin], isEditable: function() {return true;}, isRemovable: function() {return true;}, @@ -354,7 +356,7 @@ var Feed = React.createClass({ }, }); -var Category = React.createClass({ +var Category = createReactClass({ mixins: [PanelMixin], isEditable: function() { if(this.props.obj.id != 0) {return true;} @@ -372,7 +374,7 @@ var Category = React.createClass({ }, }); -var RightPanel = React.createClass({ +var RightPanel = createReactClass({ getInitialState: function() { return {category: null, feed: null, article: null, current: null}; }, |