var React = require('react'); var RightPanelStore = require('../stores/RightPanelStore'); var RightPanelActions = require('../actions/RightPanelActions'); var Article = React.createClass({ render: function() { return (
); }, }); var Feed = React.createClass({ render: function() { return (); }, }); var Category = React.createClass({ render: function() { return (); }, }); var RightPanelMenu = React.createClass({ getInitialState: function() { return {}; }, render: function() { return (); }, componentDidMount: function() { RightPanelStore.addChangeListener(this._onChange); }, componentWillUnmount: function() { RightPanelStore.removeChangeListener(this._onChange); }, _onChange: function() { }, }); var RightPanel = React.createClass({ getInitialState: function() { return {obj_type: null, obj_id: null}; }, render: function() { if (this.state.obj_type == 'article') { return ; } else if (this.state.obj_type == 'feed') { return