Merge pull request #492 from IsaacWise06/issue/442

feat(links): Allow the user to enable/disable merging duplicates
This commit is contained in:
Daniel
2024-03-05 17:33:32 +03:30
committed by GitHub
7 changed files with 42 additions and 5 deletions
+2 -3
View File
@@ -226,11 +226,10 @@ const renderItem = (
return (
<div ref={provided.innerRef} {...provided.draggableProps} className="mb-1">
<div
className={`${
currentPath === `/collections/${collection.id}`
className={`${currentPath === `/collections/${collection.id}`
? "bg-primary/20 is-active"
: "hover:bg-neutral/20"
} duration-100 flex gap-1 items-center pr-2 pl-1 rounded-md`}
} duration-100 flex gap-1 items-center pr-2 pl-1 rounded-md`}
>
{Icon(item as ExtendedTreeItem, onExpand, onCollapse)}
-1
View File
@@ -109,7 +109,6 @@ export default function NewLinkModal({ onClose }: Props) {
toast.success(`Created!`);
onClose();
} else toast.error(response.data as string);
setSubmitLoader(false);
return response;