Database diagrams editor that allows you to visualize and design your DB with a single query.
TypeScript databasedbdb-migrationeditorerdmariadbmssqlmysqlpostgresqlreactreact-flowschema-migrationssqlsqlitetypescriptvisualizationxyflow
edit action table on mobile
naorgudf473d2c0833
diff --git a/src/context/layout-context/layout-provider.tsx b/src/context/layout-context/layout-provider.tsxindex e1019d2b..bd5a254e 100644--- a/src/context/layout-context/layout-provider.tsx+++ b/src/context/layout-context/layout-provider.tsx@@ -27,12 +27,20 @@ export const LayoutProvider: React.FC<React.PropsWithChildren> = ({const showSidePanel: LayoutContext['showSidePanel'] = () =>setIsSidePanelShowed(true);++ const openTableFromSidebar: LayoutContext['openTableFromSidebar'] = (+ tableId+ ) => {+ showSidePanel();+ setSelectedSidebarSection('tables');+ setOpenedTableInSidebar(tableId);+ };return (<layoutContext.Providervalue={{openedTableInSidebar,selectedSidebarSection,- openTableFromSidebar: setOpenedTableInSidebar,+ openTableFromSidebar,selectSidebarSection: setSelectedSidebarSection,openedRelationshipInSidebar,openRelationshipFromSidebar: setOpenedRelationshipInSidebar,