diff --git a/components/LinkViews/LinkCard.tsx b/components/LinkViews/LinkCard.tsx index 81fbfae..d6d52ee 100644 --- a/components/LinkViews/LinkCard.tsx +++ b/components/LinkViews/LinkCard.tsx @@ -22,11 +22,13 @@ type Props = { count: number; className?: string; flipDropdown?: boolean; + showCheckbox?: boolean; }; export default function LinkCard({ link, flipDropdown, + showCheckbox, }: Props) { const { collections } = useCollectionStore(); @@ -89,12 +91,14 @@ export default function LinkCard({ ref={ref} className="border border-solid border-neutral-content bg-base-200 shadow-md hover:shadow-none duration-100 rounded-2xl relative" > - handleCheckboxClick(link.id)} - /> + {showCheckbox && + handleCheckboxClick(link.id)} + /> + } - handleCheckboxClick(link.id)} - /> + {showCheckbox && + handleCheckboxClick(link.id)} + /> + } +