diff --git a/src/App.tsx b/src/App.tsx index 2279ab0e..a01d155f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -41,7 +41,9 @@ const TableSettingsDialog = lazy(() => import("@src/components/TableSettingsDial // prettier-ignore const TablesPage = lazy(() => import("@src/pages/TablesPage" /* webpackChunkName: "TablesPage" */)); // prettier-ignore -const TablePage = lazy(() => import("@src/pages/TablePage" /* webpackChunkName: "TablePage" */)); +const ProvidedTablePage = lazy(() => import("@src/pages/Table/ProvidedTablePage" /* webpackChunkName: "ProvidedTablePage" */)); +// prettier-ignore +const ProvidedSubTablePage = lazy(() => import("@src/pages/Table/ProvidedSubTablePage" /* webpackChunkName: "ProvidedSubTablePage" */)); // prettier-ignore const FunctionPage = lazy(() => import("@src/pages/FunctionPage" /* webpackChunkName: "FunctionPage" */)); @@ -105,8 +107,17 @@ export default function App() { } /> - } /> + }> + + } /> + } + /> + + + } /> } /> diff --git a/src/components/ErrorFallback.tsx b/src/components/ErrorFallback.tsx index 06f8de78..93764d63 100644 --- a/src/components/ErrorFallback.tsx +++ b/src/components/ErrorFallback.tsx @@ -10,10 +10,11 @@ import { Tables as TablesIcon } from "@src/assets/icons"; import EmptyState, { IEmptyStateProps } from "@src/components/EmptyState"; import AccessDenied from "@src/components/AccessDenied"; -import { ERROR_TABLE_NOT_FOUND } from "@src/sources/TableSourceFirestore"; import { ROUTES } from "@src/constants/routes"; import meta from "@root/package.json"; +export const ERROR_TABLE_NOT_FOUND = "Table not found"; + export interface IErrorFallbackProps extends FallbackProps, IEmptyStateProps {} export default function ErrorFallback({ @@ -54,12 +55,13 @@ export default function ErrorFallback({ ), }; - if (error.message === ERROR_TABLE_NOT_FOUND) { + if (error.message.startsWith(ERROR_TABLE_NOT_FOUND)) { renderProps = { - message: "Table not found", + message: ERROR_TABLE_NOT_FOUND, description: ( <> Make sure you have the right ID + {error.message.replace(ERROR_TABLE_NOT_FOUND + ": ", "")}