2
0
Эх сурвалжийг харах

create PageAccessoriesContainer

kaoritokashiki 5 жил өмнө
parent
commit
628034dfc1

+ 26 - 0
src/client/js/services/PageAccessoriesContainer.js

@@ -0,0 +1,26 @@
+import { Container } from 'unstated';
+
+/**
+ * Service container related to options for Application
+ * @extends {Container} unstated Container
+ */
+
+export default class PafeAccessoriesContainer extends Container {
+
+  constructor(appContainer) {
+    super();
+
+    this.appContainer = appContainer;
+
+    this.state = {
+      isPageAccessoriesModalShown: false,
+      activeTab: '',
+      // Prevent unnecessary rendering
+      activeComponents: new Set(['']),
+    };
+
+    // this.openPageCreateModal = this.openPageCreateModal.bind(this);
+    // this.closePageCreateModal = this.closePageCreateModal.bind(this);
+  }
+
+}