diff --git a/client/dashboard/layout/layout.js b/client/dashboard/layout/layout.js
index 9aa2d94..050df02 100644
--- a/client/dashboard/layout/layout.js
+++ b/client/dashboard/layout/layout.js
@@ -1,7 +1,11 @@
+import React from 'react';
+
import layoutRt from './layout.rt.js';
var Layout = React.createClass({
- getInitialState: function() {
+
+ getInitialState: function(){
+ return {view: "????"};
},
handleResize: function(e) {
@@ -14,11 +18,12 @@ var Layout = React.createClass({
setView: function(event) {
var layout = this;
+ console.log(event.target.value)
layout.setState({view: event.target.value});
},
render: function() {
- return layoutRt.bind(this);
+ return layoutRt.call(this);
}
});
diff --git a/client/dashboard/layout/layout.rt b/client/dashboard/layout/layout.rt
index c7bba6a..fed8186 100644
--- a/client/dashboard/layout/layout.rt
+++ b/client/dashboard/layout/layout.rt
@@ -1,4 +1,6 @@
-
+
+
+
{this.state.view}