From 4b42a173bf7aebd95d3796a6d2053d93d64fe968 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Fri, 1 Nov 2024 03:31:30 -0400 Subject: [PATCH] Finish delete button --- app/routes/short-links.tsx | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/app/routes/short-links.tsx b/app/routes/short-links.tsx index 2c2f823..788df22 100644 --- a/app/routes/short-links.tsx +++ b/app/routes/short-links.tsx @@ -1,7 +1,7 @@ import { - Button, Container, Heading, + IconButton, Link, Table, TableCaption, @@ -76,6 +76,7 @@ export default function () { toast({ description: `Link ${path} was successfully deleted.`, + onCloseComplete: location.reload, status: "success", title: "Deleted", }); @@ -101,7 +102,23 @@ export default function () { {entry.destination} {entry.path} - + + + + + } + onClick={async () => await deleteLink(entry.path)} + /> );