feat: added dropdown component

This commit is contained in:
Daniel
2023-03-23 02:41:54 +03:30
parent e5e2a615fc
commit f80113c487
20 changed files with 152 additions and 54 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
import LinkList from "@/components/LinkList";
import useLinkSlice from "@/store/links";
import useLinkStore from "@/store/links";
import { useRouter } from "next/router";
export default function () {
const router = useRouter();
const { links } = useLinkSlice();
const { links } = useLinkStore();
const linksByCollection = links.filter(
(e) => e.collectionId === Number(router.query.id)
+2 -2
View File
@@ -1,10 +1,10 @@
import { useSession } from "next-auth/react";
import useCollectionSlice from "@/store/collections";
import useCollectionStore from "@/store/collections";
import CollectionCard from "@/components/CollectionCard";
export default function () {
const { collections } = useCollectionSlice();
const { collections } = useCollectionStore();
const { data: session, status } = useSession();
const user = session?.user;