Skip to content

Commit

Permalink
Visually reflect change of 'submit' button on empty selection
Browse files Browse the repository at this point in the history
  • Loading branch information
SSoelvsten committed Mar 26, 2024
1 parent 6daaeea commit ccc543f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion game/src/game-screen/game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,10 @@ const Game = ({ instance: { anagrams }, difficulty, language, accScore, round, o
onClick={() => actionDelete(idx)}
/>)
)}
<InputButton icon={faSolid.faCaretRight} onClick={actionSubmit} />
<InputButton
icon={emptySelection ? faSolid.faRedo : faSolid.faCaretRight}
onClick={actionSubmit}
/>
</div>
<div className={`Row`}>
{chars.map(([c, i], idx) => (
Expand Down

0 comments on commit ccc543f

Please sign in to comment.