Disable revealed tiles
This commit is contained in:
parent
54d0ec8f0a
commit
13d547622e
|
@ -108,7 +108,7 @@ const Tile = ({ tile, onClick, spymaster, myTurn, winner }: TileProps) => {
|
||||||
className={classes.button}
|
className={classes.button}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
style={tileStyle(tile, spymaster)}
|
style={tileStyle(tile, spymaster)}
|
||||||
disabled={spymaster || !myTurn || winner}
|
disabled={spymaster || !myTurn || winner || tile.revealed}
|
||||||
>
|
>
|
||||||
<Typography variant="h6" className={classes.typo}>
|
<Typography variant="h6" className={classes.typo}>
|
||||||
{tile.word}
|
{tile.word}
|
||||||
|
|
Loading…
Reference in New Issue