Skip to content

Commit

Permalink
Added Admin Page (#1031)
Browse files Browse the repository at this point in the history
* Added Admin Page

* moved adminPage above botsBody
  • Loading branch information
gouravmpk authored Dec 4, 2023
1 parent 568967d commit 937f0c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/app/src/admin/admin.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { observer } from 'mobx-react-lite';
import React from 'react';

export const AdminPage = observer(() => <div>Admin</div>);
4 changes: 4 additions & 0 deletions frontend/app/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import '@material/react-material-icon/dist/material-icon.css';
import { AppMode } from 'config';
import { Route, Switch } from 'react-router-dom';
import { observer } from 'mobx-react-lite';
import { AdminPage } from 'admin/admin';
import BotsBody from '../bots/Body';
import PeopleHeader from '../people/main/Header';
import TokenRefresh from '../people/utils/TokenRefresh';
Expand Down Expand Up @@ -44,6 +45,9 @@ const modeDispatchPages: Record<AppMode, () => React.ReactElement> = {
<Route path="/leaderboard">
<LeaderboardPage />
</Route>
<Route path="/admin">
<AdminPage />
</Route>
<Route path="*">
<Body />
</Route>
Expand Down

0 comments on commit 937f0c2

Please sign in to comment.