Implemented Bingo items as buttons
This commit is contained in:
parent
3a479cb573
commit
f51c5201e6
@ -9,6 +9,6 @@ export default function BingoItem({text}: Props){
|
|||||||
const [clicked, setClicked] = React.useState(false);
|
const [clicked, setClicked] = React.useState(false);
|
||||||
|
|
||||||
return(
|
return(
|
||||||
<td className={clsx("cursor-pointer", {"bg-primary-focus":clicked})} onClick={() => setClicked(!clicked)}>{text}</td>
|
<td><a className={clsx("btn btn-ghost w-full", {"bg-primary-focus":clicked})} onClick={() => setClicked(!clicked)}>{text}</a></td>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user