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
@@ -5,7 +5,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faPlus } from "@fortawesome/free-solid-svg-icons";
import { useRouter } from "next/router";
import { NewLink } from "@/types/global";
import useLinkSlice from "@/store/links";
import useLinkStore from "@/store/links";
export default function ({ toggleLinkModal }: { toggleLinkModal: Function }) {
const router = useRouter();
@@ -17,7 +17,7 @@ export default function ({ toggleLinkModal }: { toggleLinkModal: Function }) {
collection: { id: Number(router.query.id) },
});
const { addLink } = useLinkSlice();
const { addLink } = useLinkStore();
const setTags = (e: any) => {
const tagNames = e.map((e: any) => {