From 80327622df2c520c5bfcd1d61c7df502af05e57d Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Tue, 7 Apr 2026 22:01:01 +0700 Subject: [PATCH] fix: toggle pause button text and color based on game state --- superpowers/src/components/HUD.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superpowers/src/components/HUD.tsx b/superpowers/src/components/HUD.tsx index f174dbf..5bdb565 100644 --- a/superpowers/src/components/HUD.tsx +++ b/superpowers/src/components/HUD.tsx @@ -65,14 +65,14 @@ export function HUD({ stateManager, onPause }: HUDProps) { onClick={onPause} style={{ padding: "6px 16px", - background: "#0f3460", + background: state.status === "paused" ? "#e94560" : "#0f3460", color: "#fff", border: "none", borderRadius: "4px", cursor: "pointer", }} > - ⏸ Pause + {state.status === "paused" ? "▶ Resume" : "⏸ Pause"} );