mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
fix search bug
This commit is contained in:
32
browser/main/Components/PlanetCreateModal.jsx
Normal file
32
browser/main/Components/PlanetCreateModal.jsx
Normal file
@@ -0,0 +1,32 @@
|
||||
var React = require('react/addons')
|
||||
var Catalyst = require('../Mixins/Catalyst')
|
||||
|
||||
var PlanetStore = require('../Stores/PlanetStore')
|
||||
|
||||
module.exports = React.createClass({
|
||||
mixins: [Catalyst.LinkedStateMixin],
|
||||
propTypes: {
|
||||
close: React.PropTypes.func
|
||||
},
|
||||
getInitialState: function () {
|
||||
return {
|
||||
planetName: ''
|
||||
}
|
||||
},
|
||||
handleSubmit: function () {
|
||||
console.log(this.state.planetName)
|
||||
},
|
||||
stopPropagation: function (e) {
|
||||
e.stopPropagation()
|
||||
},
|
||||
render: function () {
|
||||
return (
|
||||
<div onClick={this.stopPropagation} className='PlanetCreateModal modal'>
|
||||
<input valueLink={this.linkState('planetName')} className='stripInput'/>
|
||||
<button onClick={this.handleSubmit} className='submitButton'>
|
||||
<i className='fa fa-check'/>
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user