add stage and bombs to window mode
This commit is contained in:
parent
2d7a6fc848
commit
4c3bbc4697
|
|
@ -20,7 +20,7 @@ const LeaderboardButton = ({
|
||||||
return (
|
return (
|
||||||
<Dialog>
|
<Dialog>
|
||||||
<DialogTrigger asChild>
|
<DialogTrigger asChild>
|
||||||
<Button className="w-fit text-white/80 self-center" variant="outline">
|
<Button className="w-fit text-white/80 self-center whitespace-nowrap" variant="outline">
|
||||||
{label}
|
{label}
|
||||||
</Button>
|
</Button>
|
||||||
</DialogTrigger>
|
</DialogTrigger>
|
||||||
|
|
|
||||||
|
|
@ -33,14 +33,11 @@ const Endless: React.FC<EndlessProps> = (props) => {
|
||||||
return game ? (
|
return game ? (
|
||||||
<>
|
<>
|
||||||
<div className="w-full flex text-white/90 gap-4">
|
<div className="w-full flex text-white/90 gap-4">
|
||||||
<Button
|
<div className="w-full h-full text-white/70 font-mono text-lg flex items-center">
|
||||||
onClick={async () => {
|
{game.minesCount - game.isFlagged.flat().filter((f) => f).length}
|
||||||
const gameId = await startGame.mutateAsync(null);
|
{" | "}
|
||||||
setGameId(gameId.uuid);
|
Stage {game.stage}
|
||||||
}}
|
</div>
|
||||||
>
|
|
||||||
Restart
|
|
||||||
</Button>
|
|
||||||
<div className="grow" />
|
<div className="grow" />
|
||||||
<LeaderboardButton label="View Leaderboard" />
|
<LeaderboardButton label="View Leaderboard" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue