From 1cb7afda8fd203547789e649e29e7c0689032d82 Mon Sep 17 00:00:00 2001 From: Juan Di Toro Date: Mon, 25 Mar 2024 09:02:09 +0100 Subject: [PATCH] fix: only completed items can be unpinned. Maybe cross iscon is not the best --- app/components/pinning-network-banner.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/app/components/pinning-network-banner.tsx b/app/components/pinning-network-banner.tsx index 68f3f48..bad556c 100644 --- a/app/components/pinning-network-banner.tsx +++ b/app/components/pinning-network-banner.tsx @@ -78,12 +78,26 @@ export const PinningNetworkBanner = () => { }; const PinCidItem = ({ item }: { item: PinningStatus }) => { + const { unpin } = usePinning(); + return (
-
+
{item.id} {item.progress}% + {item.status === "completed" ? ( + + ) : null}