From b7e79f289a5bce608da37f394f0db6d8d1a658bb Mon Sep 17 00:00:00 2001 From: ieow Date: Tue, 23 Aug 2022 17:31:41 +0800 Subject: [PATCH] fix: css - reduce height for nft confirm page --- src/components/transfer/TransferNFT.vue | 22 +++++++++++----------- tailwind.config.js | 1 + 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/components/transfer/TransferNFT.vue b/src/components/transfer/TransferNFT.vue index 83794025..7c62f8d5 100644 --- a/src/components/transfer/TransferNFT.vue +++ b/src/components/transfer/TransferNFT.vue @@ -4,7 +4,7 @@ import { Dialog, DialogOverlay, DialogTitle, TransitionChild, TransitionRoot } f import { addressSlicer } from "@toruslabs/base-controllers"; import { getChainIdToNetwork } from "@toruslabs/solana-controllers"; import { ExternalLinkIcon } from "@toruslabs/vue-icons/basic"; -import BigNumber from "bignumber.js"; +// import BigNumber from "bignumber.js"; import { computed, ref } from "vue"; import { useI18n } from "vue-i18n"; @@ -49,10 +49,10 @@ const props = withDefaults( const { t } = useI18n(); -const currency = computed(() => ControllerModule.torus.currentCurrency); -const pricePerToken = computed((): number => { - return ControllerModule.torus.conversionRate; -}); +// const currency = computed(() => ControllerModule.torus.currentCurrency); +// const pricePerToken = computed((): number => { +// return ControllerModule.torus.conversionRate; +// }); const emits = defineEmits(["transferConfirm", "transferReject", "onCloseModal"]); const closeModal = () => { @@ -68,9 +68,9 @@ const onConfirm = () => { closeModal(); }; // Transaction fee -const fiatTxFeeString = computed(() => { - return `${new BigNumber(props.cryptoTxFee).multipliedBy(pricePerToken.value).toFixed(5).toString()} ${currency.value}`; -}); +// const fiatTxFeeString = computed(() => { +// return `${new BigNumber(props.cryptoTxFee).multipliedBy(pricePerToken.value).toFixed(5).toString()} ${currency.value}`; +// }); const explorerUrl = computed(() => { return `${ControllerModule.torus.blockExplorerUrl}/account/${props.receiverPubKey}/?cluster=${getChainIdToNetwork(ControllerModule.torus.chainId)}`; @@ -98,7 +98,7 @@ const refDiv = ref(null);
- +
-
+