Fix unused eslint error

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-02-26 12:32:34 +01:00
parent c6cff715d5
commit c362970098
17 changed files with 156 additions and 116 deletions

View File

@@ -4,13 +4,7 @@ import { lazy, StrictMode, Suspense } from "react";
import { createRoot } from "react-dom/client";
import { HelmetProvider } from "react-helmet-async";
import { RelayEnvironmentProvider } from "react-relay";
import {
BrowserRouter,
Route,
Routes,
useLocation,
Navigate,
} from "react-router";
import { BrowserRouter, Route, Routes, useLocation } from "react-router";
import "App.css";
import ErrorBoundary from "./components/ErrorBoundary";
import ConsoleLayout from "./layouts/ConsoleLayout";
@@ -122,11 +116,22 @@ function App() {
element={
<Suspense>
<ErrorBoundaryWithLocation>
<CreateOrganizationPage />
<ConsoleLayout />
</ErrorBoundaryWithLocation>
</Suspense>
}
/>
>
<Route
index
element={
<Suspense>
<ErrorBoundaryWithLocation>
<CreateOrganizationPage />
</ErrorBoundaryWithLocation>
</Suspense>
}
/>
</Route>
{/* Organization-specific Routes */}
<Route
@@ -147,6 +152,16 @@ function App() {
</Suspense>
}
/>
<Route
path="create"
element={
<Suspense>
<ErrorBoundaryWithLocation>
<CreateOrganizationPage />
</ErrorBoundaryWithLocation>
</Suspense>
}
/>
<Route
path="peoples"
element={