address zustand progression review feedback

This commit is contained in:
Tom Boullay
2026-04-30 14:59:41 +02:00
parent 8884edb281
commit a14f776e5d
2 changed files with 88 additions and 115 deletions
+6 -1
View File
@@ -44,10 +44,15 @@ export function GameStateHUD(): React.JSX.Element | null {
<p className="game-state-hud__detail">Sub state: {detail}</p>
<div className="game-state-hud__states" aria-label="Main states">
<div
className="game-state-hud__states"
aria-label="Main states"
role="group"
>
{MAIN_STATES.map((state) => (
<button
key={state}
aria-pressed={state === mainState}
className={state === mainState ? "is-active" : undefined}
type="button"
onClick={() => setMainState(state)}