Skip to content

Commit

Permalink
dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Montoya committed Jun 14, 2024
1 parent 59ce2f8 commit 04de1e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/Montoya/slots-snap.git"
},
"source": {
"shasum": "szDKRRqSN8D0v3kSej8OxUdZwmpo+eGVANs2lPIquaU=",
"shasum": "9LteXMaIR1qJf3ZoSRix3X3uxNgZn3dYNr6Ho8t/pqk=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export const onUserInput: OnUserInputHandler = async ({id, event}) => {
<Heading>Settings</Heading>
<Form name="settingsForm">
<Field label="Theme">
<Dropdown name="reel">
<Dropdown name="reel" value={''+playerState.reel}>
<Option value="fox">🦊 πŸ’ 🍊 🍌 🍎</Option>
<Option value="gator">🐊 🐘 πŸ¦’ πŸ… πŸ¦“</Option>
<Option value="frog">🐸 🍱 🍡 πŸ₯ πŸ„</Option>
Expand Down Expand Up @@ -297,7 +297,7 @@ export const onUserInput: OnUserInputHandler = async ({id, event}) => {
ui: (
<Box>
<Heading>Are you sure?</Heading>
<Text>This will erase your data. This cannot be undone.</Text>
<Text>This will erase your game data. This cannot be undone.</Text>
<Box direction="horizontal" alignment="space-between">
<Button name="settings">Cancel</Button>
<Button name="clear" variant="destructive">Confirm</Button>
Expand Down

0 comments on commit 04de1e8

Please sign in to comment.