Browse Source

refactor: move tab composable to pinia store

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5274/head
Pranav C 2 years ago
parent
commit
8b671532d9
  1. 1
      packages/nc-gui/store/index.ts
  2. 2
      packages/nc-gui/store/tab.ts

1
packages/nc-gui/store/index.ts

@ -1 +0,0 @@
export * from './project'

2
packages/nc-gui/composables/useTabs.ts → packages/nc-gui/store/tab.ts

@ -11,7 +11,7 @@ function getPredicate(key: Partial<TabItem>) {
(!('type' in key) || tab.type === key.type)
}
export const useTabs = createSharedComposable(() => {
export const useTab = createSharedComposable(() => {
const tabs = ref<TabItem[]>([])
const router = useRouter()
Loading…
Cancel
Save