Edit Mode

This commit is contained in:
Isaac Wise
2024-02-10 23:55:00 -06:00
parent 44daffbae6
commit 8ecedf7cae
7 changed files with 91 additions and 70 deletions
+3 -1
View File
@@ -25,12 +25,14 @@ type Props = {
className?: string;
flipDropdown?: boolean;
showCheckbox?: boolean;
editMode?: boolean;
};
export default function LinkCard({
link,
flipDropdown,
showCheckbox = true,
editMode
}: Props) {
const { collections } = useCollectionStore();
const { account } = useAccountStore();
@@ -101,7 +103,7 @@ 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"
>
{showCheckbox &&
{showCheckbox && editMode &&
(permissions === true ||
permissions?.canCreate ||
permissions?.canDelete) && (