Browse Source

drop Layout

traumschule 4 years ago
parent
commit
8643e12c09
1 changed files with 2 additions and 15 deletions
  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() {