feat: added edit + delete collection functionality
This commit is contained in:
@@ -40,7 +40,7 @@ export default function EditLink({ toggleLinkModal, link }: Props) {
|
||||
});
|
||||
};
|
||||
|
||||
const submitLink = async () => {
|
||||
const submit = async () => {
|
||||
updateLink(currentLink);
|
||||
toggleLinkModal();
|
||||
};
|
||||
@@ -87,7 +87,7 @@ export default function EditLink({ toggleLinkModal, link }: 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={faPenToSquare} className="h-5" />
|
||||
Edit Link
|
||||
|
||||
Reference in New Issue
Block a user