diff --git a/components/LinkViews/LinkComponents/LinkActions.tsx b/components/LinkViews/LinkComponents/LinkActions.tsx index ef4e6c7..9f53a05 100644 --- a/components/LinkViews/LinkComponents/LinkActions.tsx +++ b/components/LinkViews/LinkComponents/LinkActions.tsx @@ -16,9 +16,11 @@ import useAccountStore from "@/store/account"; export default function LinkActions({ link, collection, + position, }: { link: LinkIncludingShortenedCollectionAndTags; collection: CollectionIncludingMembersAndLinkCount; + position?: string; }) { const permissions = usePermissions(link.collection.id as number); @@ -62,7 +64,11 @@ export default function LinkActions({ {permissions === true || permissions?.canUpdate || permissions?.canDelete ? ( -
- {activeCollection?.name} -
-+ {activeCollection?.name} +
Showing {activeCollection?._count?.links} results
Your Collections
-Collections you own
+Collections you own
Other Collections
-Shared collections you're a member of
++ Shared collections you're a member of +
Dashboard
-A brief overview of your data
+A brief overview of your data
All Links
-Links from every Collections
+Links from every Collections
Pinned Links
-Pinned Links from your Collections
++ Pinned Links from your Collections +
Search Results @@ -52,25 +69,17 @@ export default function Search() {
Nothing found.{" "}
diff --git a/pages/tags/[id].tsx b/pages/tags/[id].tsx
index 8adfdc4..e1d92da 100644
--- a/pages/tags/[id].tsx
+++ b/pages/tags/[id].tsx
@@ -12,10 +12,13 @@ import { FormEvent, useEffect, useState } from "react";
import MainLayout from "@/layouts/MainLayout";
import useTagStore from "@/store/tags";
import SortDropdown from "@/components/SortDropdown";
-import { Sort, TagIncludingLinkCount } from "@/types/global";
+import { Sort, TagIncludingLinkCount, ViewMode } from "@/types/global";
import useLinks from "@/hooks/useLinks";
-import Dropdown from "@/components/Dropdown";
import { toast } from "react-hot-toast";
+import ViewDropdown from "@/components/ViewDropdown";
+import DefaultView from "@/components/LinkViews/DefaultView";
+import GridView from "@/components/LinkViews/GridView";
+import ListView from "@/components/LinkViews/ListView";
export default function Index() {
const router = useRouter();
@@ -25,8 +28,6 @@ export default function Index() {
const [sortBy, setSortBy] = useState