Remove tab context

This commit is contained in:
1ilit
2024-03-13 20:39:16 +02:00
parent 24eecdc39b
commit 40ef1b057e
9 changed files with 212 additions and 194 deletions
+4 -1
View File
@@ -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 (