Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into papi-slice-1
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Oct 9, 2024
2 parents 46dc90b + 7fb03ed commit 97bf26d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/frontend/src/lib/components/send/SendWizard.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
<script lang="ts">
import { type WizardStep } from '@dfinity/gix-components';
import BtcSendTokenWizard from '$btc/components/send/BtcSendTokenWizard.svelte';
import EthSendTokenWizard from '$eth/components/send/EthSendTokenWizard.svelte';
import SendTokenContext from '$eth/components/send/SendTokenContext.svelte';
import { selectedEthereumNetwork } from '$eth/derived/network.derived';
import { ethereumToken } from '$eth/derived/token.derived';
import IcSendTokenWizard from '$icp/components/send/IcSendTokenWizard.svelte';
import { token } from '$lib/stores/token.store';
import type { Network, NetworkId } from '$lib/types/network';
import { isNetworkIdEthereum, isNetworkIdICP } from '$lib/utils/network.utils';
import {
isNetworkIdEthereum,
isNetworkIdICP,
isNetworkIdBitcoin
} from '$lib/utils/network.utils';
export let source: string;
export let destination: string;
Expand Down Expand Up @@ -52,6 +57,21 @@
on:icQRCodeScan
on:icQRCodeBack
/>
{:else if isNetworkIdBitcoin($token?.network.id)}
<BtcSendTokenWizard
{currentStep}
{formCancelAction}
bind:destination
bind:networkId
bind:amount
bind:sendProgressStep
on:icBack
on:icNext
on:icClose
on:icSendBack
on:icQRCodeScan
on:icQRCodeBack
/>
{:else}
<slot />
{/if}
Expand Down

0 comments on commit 97bf26d

Please sign in to comment.