feat: replace ? button with hint type icons in ActorPopover

This commit is contained in:
thibaud-leclere
2026-03-30 22:35:39 +02:00
parent 42a3567e1c
commit 91f45448f0
6 changed files with 27 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ function isLetter(ch) {
return /[a-zA-Z]/.test(ch);
}
export default function GameRow({ actorName, pos, colStart, totalWidth }) {
export default function GameRow({ actorName, pos, colStart, totalWidth, hintType, hintText }) {
const inputRefs = useRef([]);
const letters = actorName.split('');
@@ -30,7 +30,7 @@ export default function GameRow({ actorName, pos, colStart, totalWidth }) {
return (
<tr>
<td>
<ActorPopover actorName={actorName} />
<ActorPopover hintType={hintType} hintText={hintText} />
</td>
{Array.from({ length: totalWidth + 1 }, (_, colIndex) => {
const charIndex = colIndex - colStart;