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
+6 -6
View File
@@ -1,14 +1,14 @@
import useCollectionSlice from "@/store/collections";
import useCollectionStore from "@/store/collections";
import { useEffect } from "react";
import { useSession } from "next-auth/react";
import useTagSlice from "@/store/tags";
import useLinkSlice from "@/store/links";
import useTagStore from "@/store/tags";
import useLinkStore from "@/store/links";
export default function () {
const { status } = useSession();
const { setCollections } = useCollectionSlice();
const { setTags } = useTagSlice();
const { setLinks } = useLinkSlice();
const { setCollections } = useCollectionStore();
const { setTags } = useTagStore();
const { setLinks } = useLinkStore();
useEffect(() => {
if (status === "authenticated") {