feat: replace ? button with hint type icons in ActorPopover
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user