clear button for send screen #98

This commit is contained in:
Paul Miller
2023-05-12 17:28:50 -05:00
parent a92366d3e5
commit 23254071ce

View File

@@ -20,6 +20,7 @@ import { TagEditor } from "~/components/TagEditor";
import { StringShower } from "~/components/ShareCard";
import { AmountCard } from "~/components/AmountCard";
import { MutinyTagItem, UNKNOWN_TAG, sortByLastUsed, tagsToIds } from "~/utils/tags";
import { BackButton } from "~/components/layout/BackButton";
type SendSource = "lightning" | "onchain";
@@ -273,7 +274,9 @@ export default function Send() {
<MutinyWalletGuard>
<SafeArea>
<DefaultMain>
<BackLink />
<Show when={address() || invoice() || nodePubkey()} fallback={<BackLink />}>
<BackButton onClick={() => clearAll()} title="Start Over" />
</Show>
<LargeHeader>Send Bitcoin</LargeHeader>
<FullscreenModal
title={sentDetails()?.amount ? "Sent" : "Payment Failed"}