Sfoglia il codice sorgente

remove state and func

itizawa 6 anni fa
parent
commit
cc92e8d6dc

+ 3 - 17
src/client/js/components/Admin/Customize/CustomizeLayoutOption.jsx

@@ -7,27 +7,13 @@ import CustomizeCrowiLayout from './layout/CustomizeCrowiLayout';
 
 
 class CustomizeLayoutOption extends React.Component {
 class CustomizeLayoutOption extends React.Component {
 
 
-  constructor(props) {
-    super(props);
-    this.state = {
-      // TODO GW-477 save setting at customizeContainer
-      currentLayout: 'growi',
-    };
-
-    this.onChangeLayout = this.onChangeLayout.bind(this);
-  }
-
-  onChangeLayout(lauoutName) {
-    this.setState({ currentLayout: lauoutName });
-  }
-
   render() {
   render() {
 
 
     return (
     return (
       <React.Fragment>
       <React.Fragment>
-        <CustomizeGrowiLayout currentLayout={this.state.currentLayout} onChangeLayout={this.onChangeLayout} />
-        <CustomizeKibelaLayout currentLayout={this.state.currentLayout} onChangeLayout={this.onChangeLayout} />
-        <CustomizeCrowiLayout currentLayout={this.state.currentLayout} onChangeLayout={this.onChangeLayout} />
+        <CustomizeGrowiLayout />
+        <CustomizeKibelaLayout />
+        <CustomizeCrowiLayout />
       </React.Fragment>
       </React.Fragment>
     );
     );
   }
   }