Browse Source

delete the CustomNavigationContainer

kaori 5 years ago
parent
commit
4d3503bc23
1 changed files with 0 additions and 37 deletions
  1. 0 37
      src/client/js/services/CustomNavigationContainer.js

+ 0 - 37
src/client/js/services/CustomNavigationContainer.js

@@ -1,37 +0,0 @@
-import { Container } from 'unstated';
-
-/**
- * Service container related to options for Application
- * @extends {Container} unstated Container
- */
-
-export default class CustomNavigationContainer extends Container {
-
-  constructor(appContainer) {
-    super();
-
-    this.appContainer = appContainer;
-
-    this.state = {
-      activeTab: '',
-      // Prevent unnecessary rendering
-      activeComponents: new Set(['']),
-    };
-
-    this.switchActiveTab = this.switchActiveTab.bind(this);
-  }
-
-  /**
-   * Workaround for the mangling in production build to break constructor.name
-   */
-  static getClassName() {
-    return 'CustomNavigationContainer';
-  }
-
-  switchActiveTab(activeTab) {
-    this.setState({
-      activeTab, activeComponents: this.state.activeComponents.add(activeTab),
-    });
-  }
-
-}