Skip to content

Commit

Permalink
fix: disabling game card
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrannychaseroperation committed Apr 17, 2024
1 parent 31c11d2 commit e3759f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/renderer/components/game-card/game-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ export function GameCard({ game, disabled, ...props }: GameCardProps) {
);

return (
<button {...props} type="button" className={styles.card({ disabled })}>
<button
{...props}
type="button"
className={styles.card({ disabled })}
disabled={disabled}
>
<div className={styles.backdrop}>
<AsyncImage
src={game.cover}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/pages/catalogue/search-results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function SearchResults() {
key={game.objectID}
game={game}
onClick={() => handleGameClick(game)}
// disabled={!game.repacks.length}
disabled={!game.repacks.length}
/>
))}
</>
Expand Down

0 comments on commit e3759f3

Please sign in to comment.