File tree Expand file tree Collapse file tree 2 files changed +2
-33
lines changed
Expand file tree Collapse file tree 2 files changed +2
-33
lines changed Original file line number Diff line number Diff line change 11// SPDX-FileCopyrightText: 2025 Sidings Media <contact@sidingsmedia.com>
22// SPDX-License-Identifier: MIT
33
4+ import { Navigate , createBrowserRouter } from "react-router" ;
45import { RouterProvider } from "react-router/dom" ;
56import { StrictMode } from "react" ;
6- import { createBrowserRouter } from "react-router" ;
77import { createRoot } from "react-dom/client" ;
88
99import App from "./App.tsx" ;
1010import DashboardLayout from "./layouts/DashboardLayout" ;
1111import EventPage from "./pages/EventPage.tsx" ;
1212import EventsListPage from "./pages/EventsListPage.tsx" ;
13- import IndexPage from "./pages/IndexPage.tsx" ;
1413import MontagePage from "./pages/MontagePage.tsx" ;
1514
1615const router = createBrowserRouter ( [
@@ -21,7 +20,7 @@ const router = createBrowserRouter([
2120 path : "/" ,
2221 Component : DashboardLayout ,
2322 children : [
24- { path : "/" , Component : IndexPage } ,
23+ { path : "/" , element : < Navigate replace to = "/montage" /> } ,
2524 {
2625 path : "/events" ,
2726 Component : EventsListPage ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments