Skip to content

Commit

Permalink
hide gameid in create
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanjohan committed Apr 26, 2024
1 parent c29fb32 commit 1784b9f
Show file tree
Hide file tree
Showing 3 changed files with 1,042 additions and 30 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,14 @@
"lint-staged": "^13.0.3"
},
"dependencies": {
"@aztec/accounts": "^0.35.1",
"@aztec/aztec.js": "^0.35.1",
"@aztec/noir-contracts.js": "^0.35.1",
"@openzeppelin/contracts": "^5.0.2",
"@types/node": "^20.12.7",
"@usedapp/core": "^1.2.13",
"ethers": "^6.12.0",
"typescript": "^5.4.5",
"validator": "^13.11.0",
"web3-validator": "^2.0.5"
}
Expand Down
18 changes: 11 additions & 7 deletions packages/nextjs/components/GameForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,17 @@ export const GameForm = ({ mode, initialOpponentAddress, initialAmount }: GameFo
</div>
<div className="p-5 divide-y divide-base-300">
<h1 className="text-xl font-bold">Game Setup</h1>
<input
type="text"
placeholder="Enter Game ID to Load"
value={gameId}
onChange={handleGameIdChange}
className="input input-bordered w-full max-w-xs"
/>
{mode === "join" && (
<>
<input
type="text"
placeholder="Enter Game ID to Load"
value={gameId}
onChange={handleGameIdChange}
className="input input-bordered w-full max-w-xs"
/>
</>
)}
<label className="block">
Opponent Address:
<input
Expand Down
Loading

0 comments on commit 1784b9f

Please sign in to comment.