Skip to content

Commit

Permalink
web-wallet: Fix memo toggle appearance
Browse files Browse the repository at this point in the history
Resolves #3456
  • Loading branch information
nortonandreev committed Feb 3, 2025
1 parent cf40004 commit 953f593
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion web-wallet/src/lib/components/Send/Send.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
{/if}
<div class="operation__address-wrapper">
<p>Memo</p>
<Switch bind:value={showMemo} />
<Switch onSurface bind:value={showMemo} />
</div>
{#if showMemo}
<Textbox
Expand Down
7 changes: 3 additions & 4 deletions web-wallet/src/lib/components/__tests__/Send.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ describe("Send", () => {
gasLimit: 20000000n,
gasPrice: 1n,
},
memo,
publicAddress,
shieldedAddress,
};
Expand Down Expand Up @@ -280,7 +279,7 @@ describe("Send", () => {
expect(baseProps.execute).toHaveBeenCalledWith(
shieldedAddress,
duskToLux(amount),
baseProps.memo,
memo,
baseProps.gasSettings.gasPrice,
baseProps.gasSettings.gasLimit
);
Expand Down Expand Up @@ -316,7 +315,7 @@ describe("Send", () => {
expect(baseProps.execute).toHaveBeenCalledWith(
shieldedAddress,
duskToLux(amount),
baseProps.memo,
memo,
baseProps.gasSettings.gasPrice,
baseProps.gasSettings.gasLimit
);
Expand Down Expand Up @@ -346,7 +345,7 @@ describe("Send", () => {
expect(baseProps.execute).toHaveBeenCalledWith(
shieldedAddress,
duskToLux(amount),
baseProps.memo,
memo,
baseProps.gasSettings.gasPrice,
baseProps.gasSettings.gasLimit
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ exports[`Send > Address step > should display a warning if the address input is
<div
aria-checked="false"
aria-disabled="false"
class="dusk-switch"
class="dusk-switch dusk-switch--on-surface"
role="switch"
tabindex="0"
/>
Expand Down Expand Up @@ -452,7 +452,7 @@ exports[`Send > Address step > should display a warning if the address input is
<div
aria-checked="false"
aria-disabled="false"
class="dusk-switch"
class="dusk-switch dusk-switch--on-surface"
role="switch"
tabindex="0"
/>
Expand Down Expand Up @@ -669,7 +669,7 @@ exports[`Send > Address step > should render the Send component Address step 1`]
<div
aria-checked="false"
aria-disabled="false"
class="dusk-switch"
class="dusk-switch dusk-switch--on-surface"
role="switch"
tabindex="0"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ exports[`Send page > should render the send page 1`] = `
<div
aria-checked="false"
aria-disabled="false"
class="dusk-switch"
class="dusk-switch dusk-switch--on-surface"
role="switch"
tabindex="0"
/>
Expand Down

0 comments on commit 953f593

Please sign in to comment.