mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
reset default tab
This commit is contained in:
1 parent
32282d628f
commit
770b361b94
1 file changed
+3
-1
@@ -3,6 +3,8 @@ import { useSceneStore } from '../PageDraw/stores/SceneState';
|
||||
|
||||
export type TabId = '2D' | '3D' | 'VIDEO' | 'IMAGE' | 'EDIT';
|
||||
|
||||
const DEFAULT_TAB : TabId = '2D';
|
||||
|
||||
interface TabState {
|
||||
// Current active tab
|
||||
activeTabId: TabId;
|
||||
@@ -18,7 +20,7 @@ interface TabState {
|
||||
}
|
||||
|
||||
export const useTabStore = create<TabState>((set, get) => ({
|
||||
activeTabId: 'EDIT',
|
||||
activeTabId: DEFAULT_TAB,
|
||||
tabData: {},
|
||||
|
||||
setActiveTab: async (newTabId) => {
|
||||
|
||||
Reference in new issue
Block a user