From 8b671532d97baf7e8ea73abed0728a62d1f6efca Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 10 Mar 2023 11:23:43 +0530 Subject: [PATCH] refactor: move tab composable to pinia store Signed-off-by: Pranav C --- packages/nc-gui/store/index.ts | 1 - packages/nc-gui/{composables/useTabs.ts => store/tab.ts} | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 packages/nc-gui/store/index.ts rename packages/nc-gui/{composables/useTabs.ts => store/tab.ts} (98%) diff --git a/packages/nc-gui/store/index.ts b/packages/nc-gui/store/index.ts deleted file mode 100644 index 6ffa5d4562..0000000000 --- a/packages/nc-gui/store/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './project' diff --git a/packages/nc-gui/composables/useTabs.ts b/packages/nc-gui/store/tab.ts similarity index 98% rename from packages/nc-gui/composables/useTabs.ts rename to packages/nc-gui/store/tab.ts index a3873c6578..3ae4215178 100644 --- a/packages/nc-gui/composables/useTabs.ts +++ b/packages/nc-gui/store/tab.ts @@ -11,7 +11,7 @@ function getPredicate(key: Partial) { (!('type' in key) || tab.type === key.type) } -export const useTabs = createSharedComposable(() => { +export const useTab = createSharedComposable(() => { const tabs = ref([]) const router = useRouter()