cleaner code

This commit is contained in:
Daniel
2023-05-27 07:59:45 +03:30
parent f26ffa7323
commit 8af9a36dfa
8 changed files with 127 additions and 392 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
import React, { useState } from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faPlus, faTrashCan } from "@fortawesome/free-solid-svg-icons";
import { faTrashCan } from "@fortawesome/free-solid-svg-icons";
import { CollectionIncludingMembers } from "@/types/global";
import useCollectionStore from "@/store/collections";
import { useRouter } from "next/router";
@@ -15,7 +15,7 @@ type Props = {
collection: CollectionIncludingMembers;
};
export default function AddCollection({
export default function DeleteCollection({
toggleDeleteCollectionModal,
collection,
}: Props) {