diff --git a/components/PublicPage/LinkCard.tsx b/components/PublicPage/LinkCard.tsx index 3be1972..21a24d2 100644 --- a/components/PublicPage/LinkCard.tsx +++ b/components/PublicPage/LinkCard.tsx @@ -4,9 +4,10 @@ import Image from "next/image"; import { Link as LinkType, Tag } from "@prisma/client"; import isValidUrl from "@/lib/client/isValidUrl"; import unescapeString from "@/lib/client/unescapeString"; +import { TagIncludingLinkCount } from "@/types/global"; interface LinksIncludingTags extends LinkType { - tags: Tag[]; + tags: TagIncludingLinkCount[]; } type Props = { diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index 366c28c..78a31a2 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -176,6 +176,9 @@ export default function Sidebar({ className }: { className?: string }) { className="w-4 h-4 drop-shadow text-gray-500 dark:text-gray-300" /> ) : undefined} +
{e.name}
+{data.name}
+{collection.name}
- {data.description && ( + {collection.description && ( <>{data.description}
+{collection.description}
> )}
diff --git a/pages/search/index.tsx b/pages/search.tsx
similarity index 100%
rename from pages/search/index.tsx
rename to pages/search.tsx
diff --git a/pages/tags/[id].tsx b/pages/tags/[id].tsx
index 466c3bb..5859c2a 100644
--- a/pages/tags/[id].tsx
+++ b/pages/tags/[id].tsx
@@ -11,10 +11,9 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useRouter } from "next/router";
import { FormEvent, useEffect, useState } from "react";
import MainLayout from "@/layouts/MainLayout";
-import { Tag } from "@prisma/client";
import useTagStore from "@/store/tags";
import SortDropdown from "@/components/SortDropdown";
-import { Sort } from "@/types/global";
+import { Sort, TagIncludingLinkCount } from "@/types/global";
import useLinks from "@/hooks/useLinks";
import Dropdown from "@/components/Dropdown";
import { toast } from "react-hot-toast";
@@ -33,7 +32,7 @@ export default function Index() {
const [renameTag, setRenameTag] = useState(false);
const [newTagName, setNewTagName] = useState