X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fapp%2FRoutes.js;h=e5da45f293d28b74c7f4c2fbe6fee5b1a54a2707;hb=98135a55c26ba5d485a0aa08aa4a3d1d42374cd9;hp=68c4290b0c1b9e759b2d8e6911bd6df1ec0537c7;hpb=4c5a82cb876e96c72c50e8bc12bd8a43a9afe847;p=alttp.git
diff --git a/resources/js/app/Routes.js b/resources/js/app/Routes.js
index 68c4290..e5da45f 100644
--- a/resources/js/app/Routes.js
+++ b/resources/js/app/Routes.js
@@ -1,94 +1,136 @@
import React from 'react';
-import { Navigate, Route, Routes } from 'react-router-dom';
+import {
+ createBrowserRouter,
+ createRoutesFromElements,
+ Navigate,
+ Route,
+ RouterProvider,
+} from 'react-router-dom';
import FullLayout from './FullLayout';
-import AlttpSeed from '../pages/AlttpSeed';
-import DiscordBot from '../pages/DiscordBot';
-import DoorsTracker from '../pages/DoorsTracker';
-import Event from '../pages/Event';
-import Events from '../pages/Events';
import Front from '../pages/Front';
-import Map from '../pages/Map';
-import Schedule from '../pages/Schedule';
import Technique from '../pages/Technique';
import Techniques from '../pages/Techniques';
-import Tournament from '../pages/Tournament';
-import TwitchBot from '../pages/TwitchBot';
import User from '../pages/User';
-const AppRoutes = () =>
- }>
- }
- />
- }
- />
- }
- />
- }
- />
- }
- />
- } />
- }
- />
- }
- />
-
- } />
- } />
-
- }
- />
- }
- />
- }
+const router = createBrowserRouter(
+ createRoutesFromElements(
+
+ }>
+ import(
+ /* webpackChunkName: "admin" */
+ '../pages/DiscordBot'
+ )}
+ />
+ }
+ />
+ }
+ />
+ import(
+ /* webpackChunkName: "events" */
+ '../pages/Events'
+ )}
+ />
+ import(
+ /* webpackChunkName: "events" */
+ '../pages/Event'
+ )}
+ />
+ import(
+ /* webpackChunkName: "seeds" */
+ '../pages/AlttpSeed'
+ )}
+ />
+ }
+ />
+ }
+ />
+
+ } />
+ import(
+ /* webpackChunkName: "map" */
+ '../pages/Map'
+ )}
+ />
+
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ import(
+ /* webpackChunkName: "events" */
+ '../pages/Schedule'
+ )}
+ />
+ }
+ />
+ }
+ />
+ import(
+ /* webpackChunkName: "tournament" */
+ '../pages/Tournament'
+ )}
+ />
+ import(
+ /* webpackChunkName: "admin" */
+ '../pages/TwitchBot'
+ )}
+ />
+ } />
+ } />
+ } />
+
+ import(
+ /* webpackChunkName: "tracker" */
+ '../pages/DoorsTracker'
+ )}
/>
- }
- />
- } />
- }
- />
- }
- />
- } />
- }
- />
- } />
- } />
- } />
-
- }
- />
-;
+
+ )
+);
+
+const AppRoutes = () => ;
export default AppRoutes;