Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

Merge branch 'dev' into issue-433

Isaac Wise558ba11db792
diff --cc components/LinkViews/LinkList.tsx
index 9ea11e5f,f4e45000..cf2a8db5
--- a/components/LinkViews/LinkList.tsx
+++ b/components/LinkViews/LinkList.tsx
@@@ -31,24 -28,8 +31,25 @@@ export default function LinkCardCompact
}: Props) {
const { collections } = useCollectionStore();
const { account } = useAccountStore();
- const { links } = useLinkStore();
+ const { links, setSelectedLinks, selectedLinks } = useLinkStore();
+
+ const handleCheckboxClick = (
+ link: LinkIncludingShortenedCollectionAndTags
+ ) => {
+ const linkIndex = selectedLinks.findIndex(
+ (selectedLink) => selectedLink.id === link.id
+ );
+
+ if (linkIndex !== -1) {
+ const updatedLinks = [...selectedLinks];
+ updatedLinks.splice(linkIndex, 1);
+ setSelectedLinks(updatedLinks);
+ } else {
+ setSelectedLinks([...selectedLinks, link]);
+ }
+ };
+
+
let shortendURL;
try {