Skip to content

Commit

Permalink
feat(frontend): BtcSendReview component
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysKarmazynDFINITY committed Oct 8, 2024
1 parent 12c3e92 commit 677eb52
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/frontend/src/btc/components/send/BtcSendReview.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<script lang="ts">
import SendReview from '$lib/components/send/SendReview.svelte';
import type { NetworkId } from '$lib/types/network';
import { invalidAmount } from '$lib/utils/input.utils';
import { isInvalidDestinationBtc } from '$lib/utils/send.utils';
export let destination = '';
export let amount: number | undefined = undefined;
export let networkId: NetworkId | undefined = undefined;
export let source: string;
// Should never happen given that the same checks are performed on previous wizard step
let invalid = true;
$: invalid =
isInvalidDestinationBtc({
destination,
networkId
}) || invalidAmount(amount);
</script>

<SendReview {source} {amount} {destination} disabled={invalid} />

0 comments on commit 677eb52

Please sign in to comment.