diff --git a/components/LinkViews/LinkCard.tsx b/components/LinkViews/LinkCard.tsx index d5f6ada..3cbaf25 100644 --- a/components/LinkViews/LinkCard.tsx +++ b/components/LinkViews/LinkCard.tsx @@ -27,11 +27,7 @@ type Props = { editMode?: boolean; }; -export default function LinkCard({ - link, - flipDropdown, - editMode, -}: Props) { +export default function LinkCard({ link, flipDropdown, editMode }: Props) { const { collections } = useCollectionStore(); const { account } = useAccountStore(); @@ -96,17 +92,21 @@ export default function LinkCard({ const [showInfo, setShowInfo] = useState(false); - const selectedStyle = selectedLinks.some((selectedLink) => selectedLink.id === link.id) ? "border-primary bg-base-300" : "border-neutral-content"; - const selectable = editMode && (permissions === true || permissions?.canCreate || permissions?.canDelete); - const hoverStyles = !selectable ? "cursor-not-allowed" : "cursor-pointer"; + const selectedStyle = selectedLinks.some( + (selectedLink) => selectedLink.id === link.id + ) + ? "border-primary bg-base-300" + : "border-neutral-content"; + const selectable = + editMode && + (permissions === true || permissions?.canCreate || permissions?.canDelete); return (
Tags
++ Tags +
Tags
++ Tags +
Description
++ Description +
@@ -192,51 +198,50 @@ export default function LinkCardCompact({
- {unescapeString(link.name || link.description) || link.url} -
++ {unescapeString(link.name || link.description) || link.url} +
-{shortendURL}
-+ {shortendURL} +
+Edit Link
++ Edit {selectedLinks.length} Link{selectedLinks.length > 1 ? "s" : ""} +
Collection
+Move to Collection
Tags
+Add Tags