Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web-wallet: Fix memo toggle appearance #3457

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading