feat: added dropdown component
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user