Skip to content

Commit

Permalink
Fix: bug where the prop type was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
antidoid committed Jan 30, 2024
1 parent 27c33c4 commit 7c69e68
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions frontend/src/components/Color.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ export default function Color({
}: {
background: string;
isSelected: boolean;
setIsSelected: React.Dispatch<React.SetStateAction<Number>>;
setIsSelected: React.Dispatch<React.SetStateAction<void>>;
}) {
return (
<div
className={`w-12 h-12 mr-3 rounded-xl ${background} cursor-pointer hover:border-4 hover:border-teal-200 ${
isSelected && "border-4 border-teal-200"
}`}
onClick={setIsSelected}
className={`w-12 h-12 mr-3 rounded-xl ${background} cursor-pointer hover:border-4 hover:border-teal-200 ${isSelected && "border-4 border-teal-200"
}`}
onClick={() => setIsSelected()}
></div>
);
}

0 comments on commit 7c69e68

Please sign in to comment.