var React = require('react/addons') var Select = require('react-select') var Catalyst = require('../Mixins/Catalyst') module.exports = React.createClass({ mixins: [Catalyst.LinkedStateMixin], propTypes: { close: React.PropTypes.func, currentPlanet: React.PropTypes.object }, getInitialState: function () { return { currentTab: 'planetProfile', planetName: this.props.currentPlanet.name, isDeletePlanetChecked: false } }, activePlanetProfile: function () { this.setState({currentTab: 'planetProfile'}) }, activeManageMember: function () { this.setState({currentTab: 'manageMember'}) }, doubleCheckDeletePlanet: function () { if (this.state.isDeletePlanetChecked) { console.log('delete it') return } this.setState({isDeletePlanetChecked: true}) React.findDOMNode(this.refs.deleteCancelButton).focus() }, cancelDeletePlanet: function () { this.setState({isDeletePlanetChecked: false}) }, interceptClick: function (e) { e.stopPropagation() }, render: function () { var content if (this.state.currentTab === 'planetProfile') { content = (