X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fapp%2FRoutes.js;h=e5da45f293d28b74c7f4c2fbe6fee5b1a54a2707;hb=98135a55c26ba5d485a0aa08aa4a3d1d42374cd9;hp=5f2ed26e7d7c97e7655154f3bf817e2bfb5557ee;hpb=16662be0b3432d67307ae8c2bb798362d77bab99;p=alttp.git
diff --git a/resources/js/app/Routes.js b/resources/js/app/Routes.js
index 5f2ed26..e5da45f 100644
--- a/resources/js/app/Routes.js
+++ b/resources/js/app/Routes.js
@@ -1,84 +1,136 @@
-import PropTypes from 'prop-types';
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 DoorsTracker from '../pages/DoorsTracker';
-import Event from '../pages/Event';
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 User from '../pages/User';
-const AppRoutes = ({ doLogout }) =>
- }>
- }
- />
- }
- />
- }
- />
- } />
- }
- />
- }
- />
-
- } />
- } />
-
- }
- />
- }
- />
- }
+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'
+ )}
/>
- }
- />
- } />
- }
- />
- }
- />
- } />
- } />
- } />
- } />
-
- }
- />
-;
+
+ )
+);
-AppRoutes.propTypes = {
- doLogout: PropTypes.func,
-};
+const AppRoutes = () => ;
export default AppRoutes;