Skip to content

Commit

Permalink
PendingChannelCard: Add "view in block explorer" for waiting for close
Browse files Browse the repository at this point in the history
  • Loading branch information
hsjoberg committed May 29, 2023
1 parent c29957d commit 485ea65
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions src/components/PendingChannelCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,17 +247,24 @@ export const PendingChannelCard = ({ channel, type, alias }: IPendingChannelCard
</CopyText>
</Right>
</Row>
{
isForceClosableChannel ? (
<Row style={{ width: "100%" }}>
<Left>
<Button style={{ marginTop: 14 }} danger={true} small={true} onPress={() => forceClose(channel)}>
<Text style={{ fontSize: 8 }}>{t("channel.forceClosePendingChannel")}</Text>
</Button>
</Left>
</Row>
) : null
}
{isForceClosableChannel === true && (
<Row style={{ width: "100%" }}>
<Left>
<Button style={{ marginTop: 14 }} danger={true} small={true} onPress={() => forceClose(channel)}>
<Text style={{ fontSize: 8 }}>{t("channel.forceClosePendingChannel")}</Text>
</Button>
</Left>
</Row>
)}
{!!(channel as lnrpc.PendingChannelsResponse.IWaitingCloseChannel)?.closingTxid && (
<Row style={{ width: "100%" }}>
<Left>
<Button style={{ marginTop: 14 }} small={true} onPress={(() => onPressViewInExplorer((channel as lnrpc.PendingChannelsResponse.ClosedChannel).closingTxid))}>
<Text style={{ fontSize: 8 }}>{t("generic.viewInBlockExplorer", { ns: namespaces.common })}</Text>
</Button>
</Left>
</Row>
)}
</>
}
{type === "FORCE_CLOSING" &&
Expand Down

1 comment on commit 485ea65

@vercel
Copy link

@vercel vercel bot commented on 485ea65 May 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blixt-wallet – ./

blixt-wallet-hsjoberg.vercel.app
blixt-wallet-git-master-hsjoberg.vercel.app

Please sign in to comment.