Skip to content

Commit

Permalink
code rabbit
Browse files Browse the repository at this point in the history
  • Loading branch information
baitcode committed Nov 27, 2024
1 parent 20cecf0 commit 4aa7ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/pages/home/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type CardProps = {

const Card: React.FC<CardProps> = ({ children, title, imgSrc, onClick, disabled }) => {
return (
<div className={styles.card} onClick={onClick} aria-disabled={disabled}>
<div className={styles.card} onClick={disabled ? undefined : onClick} aria-disabled={disabled}>
<div
style={{ backgroundImage: `url('${cdnize(imgSrc)}')` }}
className={styles.cardImage}
Expand Down

0 comments on commit 4aa7ec1

Please sign in to comment.