From b9fc0ada22f7d9a3a11b4307d3ad58442fcb3f3f Mon Sep 17 00:00:00 2001 From: dafuga Date: Fri, 1 Sep 2023 23:41:23 -0700 Subject: [PATCH] chore: added EvmTxFollower component --- src/components/evm-tx-follower/index.svelte | 128 ++++++++++++++++++++ src/components/tx-follower/index.svelte | 16 ++- 2 files changed, 139 insertions(+), 5 deletions(-) create mode 100644 src/components/evm-tx-follower/index.svelte diff --git a/src/components/evm-tx-follower/index.svelte b/src/components/evm-tx-follower/index.svelte new file mode 100644 index 00000000..a9706917 --- /dev/null +++ b/src/components/evm-tx-follower/index.svelte @@ -0,0 +1,128 @@ + + + + + +
+ +

{title}

+ {txId} +
+
+
+ + + +
+
+ +
+
+
diff --git a/src/components/tx-follower/index.svelte b/src/components/tx-follower/index.svelte index a7ec81eb..ff1292a9 100644 --- a/src/components/tx-follower/index.svelte +++ b/src/components/tx-follower/index.svelte @@ -13,12 +13,18 @@ import Summary from './summary.svelte' import Advanced from './advanced.svelte' - /** The transaction id to follow. */ + /** The transaction id to follow */ export let id: Checksum256Type - /** The chain where the transaction was submitted. */ + /** The chain where the transaction was submitted */ export let chain: ChainConfig - /** Title, e.g. Tokens sent. */ + /** Title, e.g. Tokens sent */ export let title = 'Transaction sent' + /** The text of the primary button at the bottom of the page */ + export let primaryButtonText = 'Done' + /** The function to call when the primary button is clicked */ + export let handlePrimaryButtonClick: () => void = () => { + router.goto('/') + } let txId: Checksum256 $: { @@ -130,8 +136,8 @@