diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-29 20:14:16 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-29 20:14:16 +0900 |
| commit | e0fbddb281dfe8ccbcb33c3d5f385b6ad402a476 (patch) | |
| tree | 1180388dba31d6f649427d46077f20704ea9855f /frontend/app/routes/golf.$gameId.watch.tsx | |
| parent | 9e47a0ecc9416a0fa0b09201882d1da5b11ebaff (diff) | |
| download | phperkaigi-2025-albatross-e0fbddb281dfe8ccbcb33c3d5f385b6ad402a476.tar.gz phperkaigi-2025-albatross-e0fbddb281dfe8ccbcb33c3d5f385b6ad402a476.tar.zst phperkaigi-2025-albatross-e0fbddb281dfe8ccbcb33c3d5f385b6ad402a476.zip | |
feat(frontend): set meta title
Diffstat (limited to 'frontend/app/routes/golf.$gameId.watch.tsx')
| -rw-r--r-- | frontend/app/routes/golf.$gameId.watch.tsx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/frontend/app/routes/golf.$gameId.watch.tsx b/frontend/app/routes/golf.$gameId.watch.tsx index 28c17cc..4093295 100644 --- a/frontend/app/routes/golf.$gameId.watch.tsx +++ b/frontend/app/routes/golf.$gameId.watch.tsx @@ -1,9 +1,19 @@ -import type { LoaderFunctionArgs } from "@remix-run/node"; +import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node"; import { isAuthenticated } from "../.server/auth"; import { apiClient } from "../.server/api/client"; import { useLoaderData } from "@remix-run/react"; import GolfWatchApp from "../components/GolfWatchApp"; +export const meta: MetaFunction<typeof loader> = ({ data }) => { + return [ + { + title: data + ? `Golf Watching ${data.game.display_name} | iOSDC 2024 Albatross.swift` + : "Golf Watching | iOSDC 2024 Albatross.swift", + }, + ]; +}; + export async function loader({ params, request }: LoaderFunctionArgs) { const { token } = await isAuthenticated(request, { failureRedirect: "/login", |
