mirror of
https://github.com/tiennm99/ai-coding-workflow-labs.git
synced 2026-08-13 11:22:51 +00:00
fix: toggle pause button text and color based on game state
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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"}
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user