mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
feat(web): add /machinery/bot-join temporary page (#179)
* feat(web): add /machinery/bot-join temporary page * add case for non-id'd bot-join route
This commit is contained in:
parent
311a9c371e
commit
8fbf8f2519
2 changed files with 39 additions and 0 deletions
|
@ -8,6 +8,7 @@ const PickerPage = React.lazy(() => import('../pages/picker'));
|
||||||
const AuthLogin = React.lazy(() => import('../pages/auth/login'));
|
const AuthLogin = React.lazy(() => import('../pages/auth/login'));
|
||||||
const MachineryNewSession = React.lazy(() => import('../pages/machinery/new-session'));
|
const MachineryNewSession = React.lazy(() => import('../pages/machinery/new-session'));
|
||||||
const MachineryLogout = React.lazy(() => import('../pages/machinery/logout'));
|
const MachineryLogout = React.lazy(() => import('../pages/machinery/logout'));
|
||||||
|
const MachineryBotJoin = React.lazy(() => import('../pages/machinery/bot-join'));
|
||||||
|
|
||||||
const DevToolsSetApi = React.lazy(() => import('../pages/dev-tools/set-api'));
|
const DevToolsSetApi = React.lazy(() => import('../pages/dev-tools/set-api'));
|
||||||
const DevToolsSessionDebug = React.lazy(() => import('../pages/dev-tools/session-debug'));
|
const DevToolsSessionDebug = React.lazy(() => import('../pages/dev-tools/session-debug'));
|
||||||
|
@ -31,6 +32,8 @@ export const AppRouter = () => {
|
||||||
|
|
||||||
<RouteWrapper component={MachineryNewSession} path="/machinery/new-session" />
|
<RouteWrapper component={MachineryNewSession} path="/machinery/new-session" />
|
||||||
<RouteWrapper component={MachineryLogout} path="/machinery/logout" />
|
<RouteWrapper component={MachineryLogout} path="/machinery/logout" />
|
||||||
|
<RouteWrapper component={MachineryBotJoin} path="/machinery/bot-join" />
|
||||||
|
<RouteWrapper component={MachineryBotJoin} path="/machinery/bot-join/:serverID" />
|
||||||
<RouteWrapper component={AuthLogin} path="/auth/login" />
|
<RouteWrapper component={AuthLogin} path="/auth/login" />
|
||||||
|
|
||||||
<RouteWrapper component={DevToolsSetApi} path="/x/dev-tools/set-api" />
|
<RouteWrapper component={DevToolsSetApi} path="/x/dev-tools/set-api" />
|
||||||
|
|
36
packages/web/src/pages/machinery/bot-join.tsx
Normal file
36
packages/web/src/pages/machinery/bot-join.tsx
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
import { navigate } from '@reach/router';
|
||||||
|
import { Button } from '@roleypoly/design-system/atoms/button';
|
||||||
|
import { Hero } from '@roleypoly/design-system/atoms/hero';
|
||||||
|
import { Space } from '@roleypoly/design-system/atoms/space';
|
||||||
|
import { Link } from '@roleypoly/design-system/atoms/typography';
|
||||||
|
import { GoArrowLeft } from 'react-icons/go';
|
||||||
|
|
||||||
|
const BotJoin = () => (
|
||||||
|
<Hero>
|
||||||
|
<div>
|
||||||
|
Hey. Thanks for taking an interest in Roleypoly.
|
||||||
|
<br />
|
||||||
|
Right now, we're not allowing you to add the Roleypoly Next closed beta bot to any
|
||||||
|
servers.
|
||||||
|
<br />
|
||||||
|
Please keep an eye on{' '}
|
||||||
|
<Link href={'https://discord.com/channels/386659935687147521/790741820173844530'}>
|
||||||
|
#next-testers
|
||||||
|
</Link>{' '}
|
||||||
|
for when we're ready.
|
||||||
|
<Space />
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
navigate(-1);
|
||||||
|
}}
|
||||||
|
color="muted"
|
||||||
|
size="small"
|
||||||
|
icon={<GoArrowLeft />}
|
||||||
|
>
|
||||||
|
Go back
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</Hero>
|
||||||
|
);
|
||||||
|
|
||||||
|
export default BotJoin;
|
Loading…
Add table
Reference in a new issue