Skip to content

Commit

Permalink
refactor: adjust asset details page
Browse files Browse the repository at this point in the history
  • Loading branch information
CedrikNikita committed Nov 1, 2024
1 parent 4a7d815 commit 7c06f1c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
15 changes: 8 additions & 7 deletions src/popup/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -821,8 +821,8 @@
"name": "Name",
"coin": "Coin",
"decimals": "Decimals",
"total-supply": "Total supply",
"max-supply": "Max supply",
"total-supply": "Total Supply",
"max-supply": "Max sSupply",
"supply": "Supply",
"priceAe": "Price (AE)",
"price": "Price",
Expand All @@ -833,14 +833,15 @@
"atl-change": "All time low",
"ath-change": "All time high",
"more": "More",
"poolShare": "Pool share",
"poolShare": "Pool Share",
"holders": "Holders",
"transactions": "Transactions",
"pooled": "Pooled",
"daoBalance": "Dao balance",
"ownerAddress": "Dao address",
"saleAddress": "Sale address",
"creatorAddress": "Creator address"
"daoBalance": "DAO Balance",
"ownerAddress": "DAO Address",
"saleAddress": "Sale Address",
"creatorAddress": "Creator Address",
"smartContract": "Smart Contract"
},
"more": {
"dex": "Superhero DEX"
Expand Down
28 changes: 14 additions & 14 deletions src/popup/pages/Assets/AssetDetailsInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<DetailsRow
v-if="assetData?.contractId && !isCoin"
:label="$t('common.smartContract')"
:label="$t('pages.token-details.smartContract')"
>
<template #text>
<AddressTruncated
Expand Down Expand Up @@ -93,6 +93,19 @@
:text="formatNumber(assetData.totalSupply)"
/>
<DetailsRow
v-if="assetData.price"
:label="$t('pages.token-details.price')"
>
<template #text>
<TokenAmount
:amount="assetData.price"
:protocol="assetData.protocol"
high-precision
/>
</template>
</DetailsRow>
<DetailsRow
v-if="assetData?.marketCap"
:label="$t('pages.token-details.market-cap')"
Expand Down Expand Up @@ -175,19 +188,6 @@
</template>
</DetailsRow>
<DetailsRow
v-if="assetData.price"
:label="$t('pages.token-details.priceAe')"
>
<template #text>
<TokenAmount
:amount="assetData.price"
:protocol="assetData.protocol"
high-precision
/>
</template>
</DetailsRow>
<DetailsRow
v-if="assetData?.currentPrice"
class="price"
Expand Down

0 comments on commit 7c06f1c

Please sign in to comment.