diff --git a/packages/builder/src/builderStore/index.js b/packages/builder/src/builderStore/index.js index bd849c834f..6fecda84c0 100644 --- a/packages/builder/src/builderStore/index.js +++ b/packages/builder/src/builderStore/index.js @@ -2,7 +2,6 @@ import { getFrontendStore } from "./store/frontend" import { getAutomationStore } from "./store/automation" import { getHostingStore } from "./store/hosting" import { getThemeStore } from "./store/theme" -import { getAdminStore } from "./store/admin" import { derived, writable } from "svelte/store" import analytics from "analytics" import { FrontendTypes, LAYOUT_NAMES } from "../constants" @@ -12,7 +11,6 @@ export const store = getFrontendStore() export const automationStore = getAutomationStore() export const themeStore = getThemeStore() export const hostingStore = getHostingStore() -export const adminPanelStore = getAdminStore() export const currentAsset = derived(store, $store => { const type = $store.currentFrontEndType diff --git a/packages/builder/src/builderStore/store/admin.js b/packages/builder/src/builderStore/store/admin.js deleted file mode 100644 index dcf7fef485..0000000000 --- a/packages/builder/src/builderStore/store/admin.js +++ /dev/null @@ -1,11 +0,0 @@ -import { writable } from "svelte/store" - -const INITIAL_ADMIN_STATE = { - oauth: [], -} - -export const getAdminStore = () => { - const store = writable({ ...INITIAL_ADMIN_STATE }) - store.actions = {} - return store -} diff --git a/packages/builder/src/stores/portal/admin.js b/packages/builder/src/stores/portal/admin.js new file mode 100644 index 0000000000..56160b3dd8 --- /dev/null +++ b/packages/builder/src/stores/portal/admin.js @@ -0,0 +1,9 @@ +import { writable } from "svelte/store" + +const INITIAL_ADMIN_STATE = { + oauth: [], +} + + + +export const admin = writable({ ...INITIAL_ADMIN_STATE }) \ No newline at end of file diff --git a/packages/builder/src/stores/portal/index.js b/packages/builder/src/stores/portal/index.js index 885bb1680a..5aba1c2731 100644 --- a/packages/builder/src/stores/portal/index.js +++ b/packages/builder/src/stores/portal/index.js @@ -1 +1,2 @@ export { organisation } from "./organisation" +export { admin } from "./admin"