From 485ea65d2d6696af13f35c4ab20f049e7859e47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20Sj=C3=B6berg?= Date: Mon, 29 May 2023 23:01:17 +0200 Subject: [PATCH] PendingChannelCard: Add "view in block explorer" for waiting for close --- src/components/PendingChannelCard.tsx | 29 +++++++++++++++++---------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/src/components/PendingChannelCard.tsx b/src/components/PendingChannelCard.tsx index ae1e409e3..e7b315064 100644 --- a/src/components/PendingChannelCard.tsx +++ b/src/components/PendingChannelCard.tsx @@ -247,17 +247,24 @@ export const PendingChannelCard = ({ channel, type, alias }: IPendingChannelCard - { - isForceClosableChannel ? ( - - - - - - ) : null - } + {isForceClosableChannel === true && ( + + + + + + )} + {!!(channel as lnrpc.PendingChannelsResponse.IWaitingCloseChannel)?.closingTxid && ( + + + + + + )} } {type === "FORCE_CLOSING" &&