fixed loading screen getting rid of the header and side nav
This commit is contained in:
parent
cb952b284e
commit
a27baa8b4a
1 changed files with 6 additions and 6 deletions
|
|
@ -286,9 +286,9 @@ export default function Router() {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Suspense fallback={<LoadingScreen />}>
|
<BrowserRouter>
|
||||||
<BrowserRouter>
|
<Header />
|
||||||
<Header />
|
<Suspense fallback={<LoadingScreen />}>
|
||||||
<Routes>
|
<Routes>
|
||||||
|
|
||||||
{/* Redirects */}
|
{/* Redirects */}
|
||||||
|
|
@ -325,7 +325,7 @@ export default function Router() {
|
||||||
|
|
||||||
<Route path="/logout" element={<Logout />} />
|
<Route path="/logout" element={<Logout />} />
|
||||||
<Route path="grainbags/:bagID" element={<GrainBag />} />
|
<Route path="grainbags/:bagID" element={<GrainBag />} />
|
||||||
{/*
|
{/*
|
||||||
<ErrorBoundary FallbackComponent={ErrorFallback}>
|
<ErrorBoundary FallbackComponent={ErrorFallback}>
|
||||||
<Route path="*" element={<RelativeRoutes/>} />
|
<Route path="*" element={<RelativeRoutes/>} />
|
||||||
</ErrorBoundary> */}
|
</ErrorBoundary> */}
|
||||||
|
|
@ -333,7 +333,7 @@ export default function Router() {
|
||||||
<Route path="*" element={<RelativeRoutes/>} />
|
<Route path="*" element={<RelativeRoutes/>} />
|
||||||
|
|
||||||
</Routes>
|
</Routes>
|
||||||
</BrowserRouter>
|
</Suspense>
|
||||||
</Suspense>
|
</BrowserRouter>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue