Prepared Nile v1
This commit is contained in:
parent
ca9280f324
commit
0b19036190
145 changed files with 5541 additions and 1285 deletions
19
src/Routing.jsx
Normal file
19
src/Routing.jsx
Normal file
|
@ -0,0 +1,19 @@
|
|||
import { Routes, Route, Navigate } from "react-router-dom";
|
||||
import AppBar from "@mui/material/AppBar";
|
||||
import Toolbar from "@mui/material/Toolbar";
|
||||
import Delta from "./pages/delta/Delta.jsx";
|
||||
import NotFound from "./pages/handlers/NotFound.jsx";
|
||||
import { useScrollToLocation } from "./hooks.jsx";
|
||||
export default function Routing() {
|
||||
useScrollToLocation();
|
||||
return (
|
||||
<div className="view">
|
||||
<Toolbar disableGutters />
|
||||
<Routes>
|
||||
<Route path="/" element={<Delta />} />
|
||||
<Route path="/404" element={<NotFound />} />
|
||||
<Route path="*" element={<Navigate to="/404" replace />} />
|
||||
</Routes>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue