diff options
| author | Claude <noreply@anthropic.com> | 2026-02-28 04:49:37 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-02-28 04:49:37 +0000 |
| commit | 3e85ba3f652112025d8214f5c3023729b67265b2 (patch) | |
| tree | a122809086e5dcd490bef0b4508aae63e60ac87a /frontend/app/pages/GolfProblemPreviewPage.tsx | |
| parent | afc5f655c2b08c425f96a445de0aa90190d35c2d (diff) | |
| download | phperkaigi-2026-albatross-3e85ba3f652112025d8214f5c3023729b67265b2.tar.gz phperkaigi-2026-albatross-3e85ba3f652112025d8214f5c3023729b67265b2.tar.zst phperkaigi-2026-albatross-3e85ba3f652112025d8214f5c3023729b67265b2.zip | |
問題閲覧画面に観戦ページへのリンクを追加
対戦ページへのリンクと並べて観戦ページへのリンクを表示するようにした。
ゲーム開始後に両方のリンクが横並びで表示される。
https://claude.ai/code/session_019qZoTGJ1R2vnAzxZLiSEhx
Diffstat (limited to 'frontend/app/pages/GolfProblemPreviewPage.tsx')
| -rw-r--r-- | frontend/app/pages/GolfProblemPreviewPage.tsx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/frontend/app/pages/GolfProblemPreviewPage.tsx b/frontend/app/pages/GolfProblemPreviewPage.tsx index 01ac5b2..34d657f 100644 --- a/frontend/app/pages/GolfProblemPreviewPage.tsx +++ b/frontend/app/pages/GolfProblemPreviewPage.tsx @@ -50,9 +50,14 @@ export default function GolfProblemPreviewPage({ gameId }: { gameId: string }) { /> </div> {game.started_at != null && ( - <NavigateLink to={`/golf/${game.game_id}/play`}> - 対戦ページへ - </NavigateLink> + <div className="flex gap-4"> + <NavigateLink to={`/golf/${game.game_id}/play`}> + 対戦ページへ + </NavigateLink> + <NavigateLink to={`/golf/${game.game_id}/watch`}> + 観戦ページへ + </NavigateLink> + </div> )} <NavigateLink to="/dashboard">ダッシュボードへ戻る</NavigateLink> </div> |
