feat: added edit + delete collection functionality

This commit is contained in:
Daniel
2023-04-29 00:40:29 +03:30
parent ca30e42f0c
commit 8b7a660766
14 changed files with 285 additions and 52 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ export default function AddLink({ toggleLinkModal }: Props) {
});
};
const submitLink = async () => {
const submit = async () => {
console.log(newLink);
const response = await addLink(newLink as NewLink);
@@ -119,7 +119,7 @@ export default function AddLink({ toggleLinkModal }: 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={submitLink}
onClick={submit}
>
<FontAwesomeIcon icon={faPlus} className="h-5" />
Add Link