From 1160c2ada161b5d1d3476c126e4f5900def78ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Fri, 28 Mar 2025 12:09:56 +0400 Subject: [PATCH] Fix not found page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- apps/console/src/App.tsx | 10 ---------- apps/console/src/pages/authentication/Routes.tsx | 2 ++ apps/console/src/pages/organizations/Routes.tsx | 2 ++ 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/console/src/App.tsx b/apps/console/src/App.tsx index e1b8bf231..9e735d9a8 100644 --- a/apps/console/src/App.tsx +++ b/apps/console/src/App.tsx @@ -27,7 +27,6 @@ posthog.init(process.env.POSTHOG_KEY!, { const OrganizationSelectionPage = lazy( () => import("./pages/OrganizationSelectionPage") ); -const NotFoundPage = lazy(() => import("./pages/NotFoundPage")); function App() { return ( @@ -62,15 +61,6 @@ function App() { } /> - - - - - } - /> diff --git a/apps/console/src/pages/authentication/Routes.tsx b/apps/console/src/pages/authentication/Routes.tsx index e9cbb7a14..bf1ab635e 100644 --- a/apps/console/src/pages/authentication/Routes.tsx +++ b/apps/console/src/pages/authentication/Routes.tsx @@ -7,6 +7,7 @@ import LoginPage from "./LoginPage"; import RegisterPage from "./RegisterPage"; import ResetPasswordPage from "./ResetPasswordPage"; import { VisitorErrorBoundaryWithLocation } from "./ErrorBoundary"; +import NotFoundPage from "../NotFoundPage"; export function AuthenticationRoutes() { return ( @@ -71,6 +72,7 @@ export function AuthenticationRoutes() { } /> + } /> ); } diff --git a/apps/console/src/pages/organizations/Routes.tsx b/apps/console/src/pages/organizations/Routes.tsx index 2e910a32b..2dae27cfa 100644 --- a/apps/console/src/pages/organizations/Routes.tsx +++ b/apps/console/src/pages/organizations/Routes.tsx @@ -20,6 +20,7 @@ import { UpdatePolicyPage } from "./policies/UpdatePolicyPage"; import { SettingsPage } from "./SettingsPage"; import { CreateOrganizationPage } from "./CreateOrganizationPage"; import HomePage from "./HomePage"; +import NotFoundPage from "../NotFoundPage"; export function OrganizationsRoutes() { return ( @@ -58,6 +59,7 @@ export function OrganizationsRoutes() { element={} /> } /> + } /> }>