Fix not found page

Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
Émile Ré
2025-03-28 12:09:56 +04:00
parent 50bf6b9c46
commit 1160c2ada1
3 changed files with 4 additions and 10 deletions

View File

@@ -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() {
</AuthLayout>
}
/>
<Route
path="*"
element={
<Suspense>
<NotFoundPage />
</Suspense>
}
/>
</Route>
</Routes>
</BrowserRouter>

View File

@@ -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() {
</Suspense>
}
/>
<Route path="*" element={<NotFoundPage />} />
</Routes>
);
}

View File

@@ -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={<UpdatePolicyPage />}
/>
<Route path="settings" element={<SettingsPage />} />
<Route path="*" element={<NotFoundPage />} />
</Route>
<Route path="*" element={<NoOrganizationLayout />}>