We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceaec21 commit 454ff79Copy full SHA for 454ff79
packages/json-table-schema-visualizer/src/providers/TablesPositionsProvider.tsx
@@ -8,11 +8,14 @@ import computeTablesPositions from "@/utils/tablePositioning/computeTablesPositi
8
export const TablesPositionsContext =
9
createContext<TablesPositionsContextValue | null>(null);
10
11
-interface ThemeProviderProps extends PropsWithChildren {
+interface TablesPositionsProviderProps extends PropsWithChildren {
12
tables: JSONTableTable[];
13
}
14
15
-const TablesPositionsProvider = ({ tables, children }: ThemeProviderProps) => {
+const TablesPositionsProvider = ({
16
+ tables,
17
+ children,
18
+}: TablesPositionsProviderProps) => {
19
const tablesPositions = useMemo(() => {
20
return computeTablesPositions(tables);
21
}, []);
0 commit comments