소스 검색

drop Layout

traumschule 4 년 전
부모
커밋
8643e12c09
1개의 변경된 파일2개의 추가작업 그리고 15개의 파일을 삭제
  1. 2 15
      src/App.tsx

+ 2 - 15
src/App.tsx

@@ -101,22 +101,9 @@ class App extends React.Component {
   //   this.setState({ loading: false });
   // }
 
-  /** RENDER FUNCTIONS **/
-  renderLoading() {
-    return <Loading />;
-  }
-  renderError() {
-    if (this.state.showModal === "Error") return;
-    this.setShowModal("Error");
-  }
-  renderApp() {
-    return <Dashboard {...this.state} />;
-  }
   render() {
-    if (this.state.loading) return this.renderLoading();
-    if (this.state.error) this.renderError();
-    if (this.state.component === "layout") return <Layout {...this.state} />;
-    return this.renderApp();
+    if (this.state.loading) return <Loading />;
+    return <Dashboard {...this.state} />;
   }
 
   componentDidMount() {