diff options
Diffstat (limited to 'frontend/app/App.tsx')
| -rw-r--r-- | frontend/app/App.tsx | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/frontend/app/App.tsx b/frontend/app/App.tsx index 762dab6..2b095ab 100644 --- a/frontend/app/App.tsx +++ b/frontend/app/App.tsx @@ -11,48 +11,48 @@ import LoginPage from "./pages/LoginPage"; import TournamentPage from "./pages/TournamentPage"; export default function App() { - return ( - <Router base={BASE_PATH.replace(/\/$/, "")}> - <Switch> - <Route path="/"> - <PublicOnlyRoute> - <IndexPage /> - </PublicOnlyRoute> - </Route> - <Route path="/login"> - <PublicOnlyRoute> - <LoginPage /> - </PublicOnlyRoute> - </Route> - <Route path="/dashboard"> - <DashboardPage /> - </Route> - <Route path="/golf/:gameId/preview"> - {(params) => ( - <ProtectedRoute> - <GolfProblemPreviewPage gameId={params.gameId} /> - </ProtectedRoute> - )} - </Route> - <Route path="/golf/:gameId/play"> - {(params) => ( - <ProtectedRoute> - <GolfPlayPage gameId={params.gameId} /> - </ProtectedRoute> - )} - </Route> - <Route path="/golf/:gameId/watch"> - {(params) => <GolfWatchPage gameId={params.gameId} />} - </Route> - <Route path="/tournament/:tournamentId"> - {(params) => <TournamentPage tournamentId={params.tournamentId} />} - </Route> - <Route> - <div className="min-h-screen bg-gray-100 flex items-center justify-center"> - <p className="text-gray-500 text-xl">404 - Page not found</p> - </div> - </Route> - </Switch> - </Router> - ); + return ( + <Router base={BASE_PATH.replace(/\/$/, "")}> + <Switch> + <Route path="/"> + <PublicOnlyRoute> + <IndexPage /> + </PublicOnlyRoute> + </Route> + <Route path="/login"> + <PublicOnlyRoute> + <LoginPage /> + </PublicOnlyRoute> + </Route> + <Route path="/dashboard"> + <DashboardPage /> + </Route> + <Route path="/golf/:gameId/preview"> + {(params) => ( + <ProtectedRoute> + <GolfProblemPreviewPage gameId={params.gameId} /> + </ProtectedRoute> + )} + </Route> + <Route path="/golf/:gameId/play"> + {(params) => ( + <ProtectedRoute> + <GolfPlayPage gameId={params.gameId} /> + </ProtectedRoute> + )} + </Route> + <Route path="/golf/:gameId/watch"> + {(params) => <GolfWatchPage gameId={params.gameId} />} + </Route> + <Route path="/tournament/:tournamentId"> + {(params) => <TournamentPage tournamentId={params.tournamentId} />} + </Route> + <Route> + <div className="min-h-screen bg-gray-100 flex items-center justify-center"> + <p className="text-gray-500 text-xl">404 - Page not found</p> + </div> + </Route> + </Switch> + </Router> + ); } |
