From 42f032f67c9cefdd8f2aa7fde319690b5ee4c4f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20F=C3=B6rtsch?= Date: Thu, 12 Mar 2026 17:41:49 +0100 Subject: [PATCH] use ACT_LABELS from shared constants in room header Co-Authored-By: Claude Opus 4.6 --- packages/client/src/components/room-header.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/client/src/components/room-header.tsx b/packages/client/src/components/room-header.tsx index 6674965..15ac9b6 100644 --- a/packages/client/src/components/room-header.tsx +++ b/packages/client/src/components/room-header.tsx @@ -1,4 +1,5 @@ import { Badge } from "@/components/ui/badge" +import { ACT_LABELS } from "@celebrate-esc/shared" import type { Act } from "@celebrate-esc/shared" interface RoomHeaderProps { @@ -7,20 +8,12 @@ interface RoomHeaderProps { connectionStatus: "disconnected" | "connecting" | "connected" } -const actLabels: Record = { - lobby: "Lobby", - act1: "Act 1", - act2: "Act 2", - act3: "Act 3", - ended: "Ended", -} - export function RoomHeader({ roomCode, currentAct, connectionStatus }: RoomHeaderProps) { return (
{roomCode} - {actLabels[currentAct]} + {ACT_LABELS[currentAct]}