feat: added edit + delete collection functionality
This commit is contained in:
@@ -27,7 +27,7 @@ export default function AddCollection({ toggleCollectionModal }: Props) {
|
||||
|
||||
const session = useSession();
|
||||
|
||||
const submitCollection = async () => {
|
||||
const submit = async () => {
|
||||
console.log(newCollection);
|
||||
|
||||
const response = await addCollection(newCollection as NewCollection);
|
||||
@@ -249,7 +249,7 @@ export default function AddCollection({ toggleCollectionModal }: Props) {
|
||||
|
||||
<div
|
||||
className="mx-auto mt-2 bg-sky-500 text-white flex items-center gap-2 py-2 px-5 rounded-md select-none font-bold cursor-pointer duration-100 hover:bg-sky-400"
|
||||
onClick={submitCollection}
|
||||
onClick={submit}
|
||||
>
|
||||
<FontAwesomeIcon icon={faPlus} className="h-5" />
|
||||
Add Collection
|
||||
|
||||
Reference in New Issue
Block a user