1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-19 04:31:46 +00:00

add PlanetSettingModal(Only visible things)

This commit is contained in:
Rokt33r
2015-07-23 02:41:35 +09:00
parent c31432fe3f
commit cdf6ed47dd
9 changed files with 263 additions and 33 deletions

View File

@@ -9,7 +9,6 @@ var BlueprintForm = require('./BlueprintForm')
var LaunchModal = React.createClass({
mixins: [Catalyst.LinkedStateMixin, ReactRouter.State],
propTypes: {
submit: React.PropTypes.func,
close: React.PropTypes.func
},
getInitialState: function () {
@@ -39,13 +38,6 @@ var LaunchModal = React.createClass({
selectBlueprintTab: function () {
this.setState({currentTab: 'blueprint'})
},
submit: function () {
if (this.state.currentTab === 'snippet') {
console.log(this.state.snippet)
} else {
console.log(this.state.blueprint)
}
},
handleKeyDown: function (e) {
if (e.keyCode === 37 && e.metaKey) {
this.selectSnippetTab()