From bdab0c6d98aa2c000019f0560009b10f5525d827 Mon Sep 17 00:00:00 2001 From: Kieran Hall Date: Sat, 31 Aug 2024 14:46:30 +0200 Subject: [PATCH] web-wallet: Split transfer contract UI Resolves #2175 --- .../lib/components/Allocate/Allocate.svelte | 2 +- .../src/lib/components/Receive/Receive.svelte | 4 ++- .../src/lib/components/Send/Send.svelte | 3 +- .../src/lib/contracts/contract-descriptors.js | 27 +++++++---------- .../src/routes/(app)/dashboard/+page.svelte | 8 +++++ .../(app)/dashboard/receive/+page.svelte | 30 +++++++++++++++++++ .../dashboard/receive/__tests__/page.spec.js | 19 ++++++++++++ .../routes/(app)/dashboard/send/+page.svelte | 30 +++++++++++++++++++ .../dashboard/send/__tests__/page.spec.js | 19 ++++++++++++ .../(app)/dashboard/staking/+page.svelte | 13 +------- 10 files changed, 124 insertions(+), 31 deletions(-) create mode 100644 web-wallet/src/routes/(app)/dashboard/receive/+page.svelte create mode 100644 web-wallet/src/routes/(app)/dashboard/receive/__tests__/page.spec.js create mode 100644 web-wallet/src/routes/(app)/dashboard/send/+page.svelte create mode 100644 web-wallet/src/routes/(app)/dashboard/send/__tests__/page.spec.js diff --git a/web-wallet/src/lib/components/Allocate/Allocate.svelte b/web-wallet/src/lib/components/Allocate/Allocate.svelte index e7714c5d07..53af14e372 100644 --- a/web-wallet/src/lib/components/Allocate/Allocate.svelte +++ b/web-wallet/src/lib/components/Allocate/Allocate.svelte @@ -314,7 +314,7 @@ flex-direction: column; justify-content: center; align-items: flex-start; - gap: var(--gap-medium); + gap: var(--medium-gap); align-self: stretch; border-radius: var(--fieldset-border-radius); diff --git a/web-wallet/src/lib/components/Receive/Receive.svelte b/web-wallet/src/lib/components/Receive/Receive.svelte index 49ed0b4c96..f44d381c19 100644 --- a/web-wallet/src/lib/components/Receive/Receive.svelte +++ b/web-wallet/src/lib/components/Receive/Receive.svelte @@ -4,6 +4,7 @@ import { createEventDispatcher } from "svelte"; import { mdiArrowLeft, mdiContentCopy } from "@mdi/js"; + import { AppAnchorButton } from "$lib/components"; import { Button, QrCode } from "$lib/dusk/components"; import { toast } from "$lib/dusk/components/Toast/store"; @@ -37,9 +38,10 @@
{#if !hideBackButton} -