0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 06:32:39 +00:00

Setupping up the basic components

This commit is contained in:
Scott Tolksdorf
2016-05-14 18:49:49 -04:00
parent 92e110ba15
commit ec968f47da
10 changed files with 286 additions and 8 deletions

View File

@@ -6,23 +6,35 @@ var Nav = require('naturalcrit/nav/nav.jsx');
var Navbar = require('./navbar/navbar.jsx');
var SplitPane = require('naturalcrit/splitPane/splitPane.jsx');
var SpellRenderer = require('./spellRenderer/spellRenderer.jsx');
var Sorter = require('./sorter/sorter.jsx');
var SpellSort = React.createClass({
getDefaultProps: function() {
return {
spells : []
};
},
handleSplitMove : function(){
},
render : function(){
console.log(this.props.spells);
return <div className='spellsort page'>
<Navbar>
<Nav.section>
yo
</Nav.section>
</Navbar>
<div className='content'>
<SplitPane onDragFinish={this.handleSplitMove} ref='pane'>
<div>pane 1</div>
<div>pane 2</div>
<Sorter spells={this.props.spells} />
<SpellRenderer spells={this.props.spells} />
</SplitPane>
</div>