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 @@