mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 11:59:11 +00:00
chore(web): attempt a slightly faster unauthed /s/ load
This commit is contained in:
parent
e0fcfc310e
commit
6edb56079d
2 changed files with 3 additions and 2 deletions
|
@ -3,9 +3,9 @@ import { GenericLoadingTemplate } from '@roleypoly/design-system/templates/gener
|
|||
import * as React from 'react';
|
||||
import AuthLogin from '../pages/auth/login';
|
||||
import LandingPage from '../pages/landing';
|
||||
import PickerPage from '../pages/picker';
|
||||
|
||||
const ServersPage = React.lazy(() => import('../pages/servers'));
|
||||
const PickerPage = React.lazy(() => import('../pages/picker'));
|
||||
|
||||
const MachineryNewSession = React.lazy(() => import('../pages/machinery/new-session'));
|
||||
const MachineryLogout = React.lazy(() => import('../pages/machinery/logout'));
|
||||
|
@ -29,7 +29,7 @@ export const AppRouter = () => {
|
|||
<Router>
|
||||
<LandingPage path="/" />
|
||||
<RouteWrapper component={ServersPage} path="/servers" />
|
||||
<RouteWrapper component={PickerPage} path="/s/:serverID" />
|
||||
<PickerPage path="/s/:serverID" />
|
||||
|
||||
<RouteWrapper
|
||||
component={MachineryNewSession}
|
||||
|
|
|
@ -12,6 +12,7 @@ import { makeRoleTransactions } from '../utils/roleTransactions';
|
|||
|
||||
type PickerProps = {
|
||||
serverID: string;
|
||||
path: string;
|
||||
};
|
||||
|
||||
const Picker = (props: PickerProps) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue