Hid 404 handling
This commit is contained in:
parent
48c9752910
commit
de6f009905
1 changed files with 3 additions and 4 deletions
|
@ -1,8 +1,7 @@
|
|||
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 NotFound from "./pages/handlers/NotFound.jsx";
|
||||
import { useScrollToLocation } from "./hooks.jsx";
|
||||
export default function Routing() {
|
||||
useScrollToLocation();
|
||||
|
@ -11,8 +10,8 @@ export default function Routing() {
|
|||
<Toolbar disableGutters />
|
||||
<Routes>
|
||||
<Route path="/" element={<Delta />} />
|
||||
<Route path="/404" element={<NotFound />} />
|
||||
<Route path="*" element={<Navigate to="/404" replace />} />
|
||||
{/*<Route path="/404" element={<NotFound />} /> */}
|
||||
<Route path="*" element={<Navigate to="/" replace />} />
|
||||
</Routes>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue