From 965e0890a48e00868f61f3c5ab1c5ebf60db6fa8 Mon Sep 17 00:00:00 2001 From: Denys Karmazyn Date: Wed, 9 Oct 2024 16:57:35 +0200 Subject: [PATCH] feat(frontend): formCancelAction prop for BtcSendTokenWizard (#2757) # Motivation Extending BtcSendTokenWizard with an additional prop that tells component which button should it render - close or back. --- .../components/send/BtcSendTokenWizard.svelte | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/btc/components/send/BtcSendTokenWizard.svelte b/src/frontend/src/btc/components/send/BtcSendTokenWizard.svelte index b8e28b09e..01b709039 100644 --- a/src/frontend/src/btc/components/send/BtcSendTokenWizard.svelte +++ b/src/frontend/src/btc/components/send/BtcSendTokenWizard.svelte @@ -1,11 +1,13 @@ @@ -49,7 +57,15 @@ bind:networkId on:icQRCodeScan {source} - /> + > + + {#if formCancelAction === 'back'} + + {:else} + + {/if} + + {:else if currentStep?.name === WizardStepsSend.QR_CODE_SCAN}