Skip to content

Commit

Permalink
未購入表示
Browse files Browse the repository at this point in the history
  • Loading branch information
Simirall committed Aug 23, 2024
1 parent baa5fb4 commit 0a64060
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"preview": "wrangler pages dev",
"deploy": "pnpm run build && wrangler pages deploy",
"generate": "drizzle-kit generate",
"local:migration": "wrangler d1 migrations apply madamis-db --local",
"remote:migration": "wrangler d1 migrations apply madamis-db --remote"
"migrate": "wrangler d1 migrations apply madamis-db --local"
},
"dependencies": {
"@hono/zod-validator": "^0.2.2",
Expand Down Expand Up @@ -37,5 +36,5 @@
"vite": "^5.4.2",
"wrangler": "^3.72.1"
},
"packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903"
"packageManager": "pnpm@9.8.0+sha512.8e4c3550fb500e808dbc30bb0ce4dd1eb614e30b1c55245f211591ec2cdf9c611cabd34e1364b42f564bd54b3945ed0f49d61d1bbf2ec9bd74b866fcdc723276"
}
7 changes: 6 additions & 1 deletion src/pages/components/MadamisList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
ActionIcon,
Badge,
Button,
Card,
Chip,
Group,
Expand Down Expand Up @@ -131,7 +132,11 @@ export const MadamisList = () => {
))}
</Stack>
)}
{Boolean(d.bought) && <AddGameButton madamisId={d.id} />}
{Boolean(d.bought) ? (
<AddGameButton madamisId={d.id} />
) : (
<Button disabled>未購入</Button>
)}
</Stack>
</Card>
))}
Expand Down

0 comments on commit 0a64060

Please sign in to comment.