make entire item clickable when in edit mode

This commit is contained in:
Isaac Wise
2024-02-11 02:38:41 -06:00
parent 5128bd44d8
commit aef33d859e
7 changed files with 433 additions and 283 deletions
@@ -19,7 +19,6 @@ export default function CardView({
link={e}
count={i}
flipDropdown={i === links.length - 1}
showCheckbox={showCheckbox}
editMode={editMode}
/>
);
+1 -4
View File
@@ -3,22 +3,19 @@ import { LinkIncludingShortenedCollectionAndTags } from "@/types/global";
export default function ListView({
links,
showCheckbox = true,
editMode,
}: {
links: LinkIncludingShortenedCollectionAndTags[];
showCheckbox?: boolean;
editMode?: boolean;
}) {
return (
<div className="flex flex-col">
<div className="flex gap-1 flex-col">
{links.map((e, i) => {
return (
<LinkList
key={i}
link={e}
count={i}
showCheckbox={showCheckbox}
flipDropdown={i === links.length - 1}
editMode={editMode}
/>