diff --git a/web-wallet/src/lib/components/Send/Send.svelte b/web-wallet/src/lib/components/Send/Send.svelte index a9dc97f2a2..da27a0e9ff 100644 --- a/web-wallet/src/lib/components/Send/Send.svelte +++ b/web-wallet/src/lib/components/Send/Send.svelte @@ -18,6 +18,7 @@ Button, Icon, Stepper, + Switch, Textbox, Wizard, WizardStep, @@ -32,7 +33,7 @@ } from "$lib/components"; import { MESSAGES } from "$lib/constants"; - /** @type {(to: string, amount: bigint, gasPrice: bigint, gasLimit: bigint) => Promise} */ + /** @type {(to: string, amount: bigint, gasPrice: bigint, gasLimit: bigint, memo: any) => Promise} */ export let execute; /** @type {(amount: number) => string} */ @@ -59,12 +60,18 @@ /** @type {string} */ let sendToAddress = ""; + /** @type {string} */ + let memo = ""; + /** @type {import("qr-scanner").default} */ let scanner; /** @type {import("..").ScanQR} */ let scanQrComponent; + /** @type {boolean} */ + let showMemo = false; + /** @type {boolean} */ let isNextButtonDisabled = false; @@ -176,7 +183,7 @@ >
-

Address:

+

Address

@@ -237,7 +261,7 @@ >
-

Amount:

+

Amount

+ +
+

+ Memo +

+ +
+
+
Address step > should display a warning if the address input is class="operation__address-wrapper svelte-npcavd" >

- Address: + Address

+ +
+

+ Memo +

+ +
+
+
Address step > should render the Send component Address step 1`] class="operation__address-wrapper svelte-npcavd" >

- Address: + Address