Add user pages
This commit is contained in:
@@ -11,6 +11,7 @@ import { LoginPage } from './pages/LoginPage'
|
||||
import { ProblemPage } from './pages/ProblemPage'
|
||||
import { ProfilePage } from './pages/ProfilePage'
|
||||
import { ScoresPage } from './pages/ScoresPage'
|
||||
import { UserPage } from './pages/UserPage'
|
||||
|
||||
const Redirect = ({ to }: { to: string }) => {
|
||||
useEffect(() => {
|
||||
@@ -47,6 +48,10 @@ export const App = ({ url }: { url?: string }) => {
|
||||
// @ts-ignore
|
||||
path={pbu('/problem/:id')}
|
||||
/>
|
||||
<UserPage
|
||||
// @ts-ignore
|
||||
path={pbu('/u/:uid')}
|
||||
/>
|
||||
<AdminPage
|
||||
// @ts-ignore
|
||||
path={pbu('/admin')}
|
||||
|
||||
Reference in New Issue
Block a user