Skip to content

Commit

Permalink
empty support page
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jul 7, 2024
1 parent d987433 commit e722c7e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { RegisterPage } from "./pages/RegisterPage"
import { LoginPage } from "./pages/LoginPage"
import { LeaderboardsPage } from "./pages/LeaderboardsPage"
import { ProfilePage } from "./pages/ProfilePage"
import { SupportPage } from "./pages/SupportPage"

const AppLayout = () => (
<>
Expand All @@ -33,6 +34,7 @@ const router = createBrowserRouter(
<Route path="login" element={<LoginPage />} />
<Route path="/leaderboards" element={<LeaderboardsPage />} />
<Route path="/u/:userId" element={<ProfilePage />} />
<Route path="/support" element={<SupportPage />} />
</Route>
)
)
Expand Down
12 changes: 12 additions & 0 deletions src/pages/SupportPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { useIdentityContext } from "../context"

export const SupportPage = () => {
const { identity } = useIdentityContext()

if (identity === null) {
// TODO: redirect to homepage
return <>Please sign into your account first!</>
}

return <></>
}

0 comments on commit e722c7e

Please sign in to comment.