From 193c66123be9e41efdeafedaa479a64966fe4f0f Mon Sep 17 00:00:00 2001 From: Isaac Wise Date: Fri, 9 Feb 2024 23:56:36 -0600 Subject: [PATCH] Don't show checkboxes on dashboard --- components/LinkViews/LinkCard.tsx | 16 ++++++++++------ components/LinkViews/LinkList.tsx | 16 ++++++++++------ pages/collections/[id].tsx | 1 + pages/dashboard.tsx | 3 ++- 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/components/LinkViews/LinkCard.tsx b/components/LinkViews/LinkCard.tsx index 81fbfaee..d6d52ee8 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)} + /> + } +
{links[0] ? (
- +
) : (
e.pinnedBy && e.pinnedBy[0]) ? (
e.pinnedBy && e.pinnedBy[0]) .slice(0, showLinks)}