-
-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11248 from Jarsen136/issue-11215
Swap Page Review Step follow up
- Loading branch information
Showing
5 changed files
with
95 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<template> | ||
<div class="nft-card bg-k-grey-light !px-4 !py-6 flex flex-col items-center justify-between gap-4"> | ||
<div class="text-lg text-center font-bold capitalize"> | ||
{{ $t('swap.surchargeTitle') }} | ||
</div> | ||
|
||
<div class="flex flex-col gap-1 items-center justify-center rounded-2xl bg-background-color w-full h-full"> | ||
<div class="text-[31px]"> | ||
{{ formatted }} | ||
</div> | ||
|
||
<div class="text-k-grey"> | ||
~ {{ usd }} $USD | ||
</div> | ||
</div> | ||
|
||
<div class="text-xs text-center capitalize"> | ||
{{ $t(surcharge.direction === 'Send' ? 'swap.surchargeIncludedWithYourItems' : 'swap.surchargeIncludedWithTheirItems') }} | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { type SwapSurcharge } from '@/composables/transaction/types' | ||
const props = defineProps<{ | ||
surcharge: SwapSurcharge | ||
}>() | ||
const { decimals, chainSymbol } = useChain() | ||
const { usd, formatted } = useAmount( | ||
computed(() => props.surcharge.amount), | ||
decimals, | ||
chainSymbol, | ||
) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters