Skip to content

Commit

Permalink
fix(CourseCard): make isPinned and onPinToggle optional props
Browse files Browse the repository at this point in the history
  • Loading branch information
IkramBagban committed Jan 31, 2025
1 parent c2a9916 commit 5ec9a29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/CourseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export const CourseCard = ({
}: {
course: Course;
onClick: () => void;
isPinned: boolean;
onPinToggle: () => void;
isPinned?: boolean;
onPinToggle?: () => void;
}) => {
const router = useRouter();

Expand Down

0 comments on commit 5ec9a29

Please sign in to comment.