Skip to content

Commit

Permalink
fix: correct FT merge module style display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AricRedemption committed Apr 11, 2024
1 parent 5e5a588 commit ffdf495
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/pages/settings/components/FTMerge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const isOpenResultModal = ref(false)
const transactionResult = ref<TransactionResult>()
const ftAsssets = ref<(Asset & { utxoCount: number })[]>([])
const NeedToMergeCount = 3
const testSplit = false
const NeedToMergeCount = 3
type Receiver = {
address: string
Expand All @@ -47,7 +47,7 @@ const split = async (genesis: string, codehash: string, symbol: string, decimal:
apiHost,
})
let receivers: Receiver[] = []
for (let i = 0; i < 99; i++) {
for (let i = 0; i < 10; i++) {
receivers.push({ address: address.value, amount: '1' })
}
loading.value = true
Expand Down Expand Up @@ -201,8 +201,8 @@ onMounted(async () => {
</div>
<div class="-mx-5 px-5 bg-gray-light py-3">Token</div>
<div class="py-16 text-center" v-if="isLoading">Token List Loading...</div>
<div class="py-3" v-for="(asset, index) in ftAsssets" :key="index" v-else-if="hasMergeToken">
<div class="flex items-center justify-between" v-if="asset.utxoCount > NeedToMergeCount">
<div v-for="(asset, index) in ftAsssets" :key="index" v-else-if="hasMergeToken">
<div class="flex items-center justify-between py-3" v-if="asset.utxoCount > NeedToMergeCount">
<div class="flex items-center gap-3">
<UseImage :src="asset.logo" v-if="asset.logo && asset.codeHash" class="h-10 w-10 rounded-md">
<template #error>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/wallet/components/TransactionResultModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const toResultTxs = async (txId: string) => {
<ExclamationTriangleIcon class="h-5 w-5 text-yellow-500"></ExclamationTriangleIcon>
</div>
</template>
<template #title v-if="result && result.status === 'success'">
<template #title v-if="(result && result.status === 'success') || result?.status === 'successTxs'">
<div class="flex flex-col justify-center items-center gap-[18px]">
<img class="w-[54px] h-[54px]" :src="SuccessIcon" alt="" />
<span class="text-black-primary">Sent Successfully</span>
Expand Down
2 changes: 1 addition & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ const routes = [
meta: {
secondaryHeader: true,
headerTitle: '',
noFooter: false,
noFooter: true,
},
},
{
Expand Down

0 comments on commit ffdf495

Please sign in to comment.