mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-06-01 02:00:44 +08:00
Remove tab context
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { createContext, useState } from "react";
|
||||
import { ObjectType } from "../data/data";
|
||||
import { ObjectType, Tab } from "../data/data";
|
||||
|
||||
export const SelectContext = createContext(null);
|
||||
|
||||
@@ -9,6 +9,9 @@ export default function SelectContextProvider({ children }) {
|
||||
id: -1,
|
||||
openDialogue: false,
|
||||
openCollapse: false,
|
||||
currentTab: Tab.tables,
|
||||
open: false, // open popover or sidesheet when sidebar is disabled
|
||||
openFromToolbar: false, // this is to handle triggering onClickOutside when sidebar is disabled
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user