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:
41666 2021-03-14 15:35:27 -04:00 committed by GitHub
parent 311a9c371e
commit 8fbf8f2519
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View file

@ -8,6 +8,7 @@ const PickerPage = React.lazy(() => import('../pages/picker'));
const AuthLogin = React.lazy(() => import('../pages/auth/login'));
const MachineryNewSession = React.lazy(() => import('../pages/machinery/new-session'));
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 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={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={DevToolsSetApi} path="/x/dev-tools/set-api" />

View 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;