X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fapp%2FRoutes.js;h=dbdbcaed8b2f5ac40ab528e1fc1ca3192028aa3e;hb=4caeac216c5e5a044d81b63a8aa5b66451162271;hp=ca543ee7088b0de66fb6c85c89e39d0d34e05c4d;hpb=b45c183b7ba39080b6438c6238bad614c4d3953e;p=alttp.git
diff --git a/resources/js/app/Routes.js b/resources/js/app/Routes.js
index ca543ee..dbdbcae 100644
--- a/resources/js/app/Routes.js
+++ b/resources/js/app/Routes.js
@@ -1,89 +1,152 @@
-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 DiscordBot from '../pages/DiscordBot';
-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'
+ )}
/>
- }
- />
- } />
- }
- />
- }
- />
- } />
- } />
- } />
- } />
-
- }
- />
-;
+
+ import(
+ /* webpackChunkName: "guessing" */
+ '../pages/GuessingGameControls'
+ )}
+ />
+ import(
+ /* webpackChunkName: "guessing" */
+ '../pages/GuessingGameMonitor'
+ )}
+ />
+
+
+ )
+);
-AppRoutes.propTypes = {
- doLogout: PropTypes.func,
-};
+const AppRoutes = () => ;
export default AppRoutes;