make production build
This commit is contained in:
25
client/dashboard/layout/layout.js
Normal file
25
client/dashboard/layout/layout.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import layoutRt from './layout.rt.js';
|
||||
|
||||
var Layout = React.createClass({
|
||||
getInitialState: function() {
|
||||
},
|
||||
|
||||
handleResize: function(e) {
|
||||
this.setState({windowWidth: window.innerWidth});
|
||||
},
|
||||
|
||||
componentDidMount: function() {
|
||||
window.addEventListener('resize', this.handleResize);
|
||||
},
|
||||
|
||||
setView: function(event) {
|
||||
var layout = this;
|
||||
layout.setState({view: event.target.value});
|
||||
},
|
||||
|
||||
render: function() {
|
||||
return layoutRt.bind(this);
|
||||
}
|
||||
});
|
||||
|
||||
export default Layout;
|
||||
Reference in New Issue
Block a user