Skip to content

Commit

Permalink
fix: update display currency of AccountAssets
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Apr 10, 2023
1 parent b55519f commit 7160c02
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions views/accounts/components/account/AccountAssets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ const AccountAssets = ({ addressData, address }: Props) => {
<div className="money money-sm">
<Typography.Balance
size="sm"
currency={`(${formatCurrencyValue(Number(astraPrice) * dataSet[0] || '0', 'VND')})`}
icon={
<CryptoIcon name={process.env.NEXT_PUBLIC_NATIVE_TOKEN as CryptoIconNames} size="sm" />
}
currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN?.toUpperCase()}
// currency={`(${formatCurrencyValue(Number(astraPrice) * dataSet[0] || '0', 'VND')})`}
// icon={
// <CryptoIcon name={process.env.NEXT_PUBLIC_NATIVE_TOKEN as CryptoIconNames} size="sm" />
// }
value={dataSet[0]}
fixNumber={5}
/>
Expand All @@ -95,10 +96,11 @@ const AccountAssets = ({ addressData, address }: Props) => {
<div className="money money-sm">
<Typography.Balance
size="sm"
currency={`(${formatCurrencyValue(Number(astraPrice) * dataSet[1] || '0', 'VND')})`}
icon={
<CryptoIcon name={process.env.NEXT_PUBLIC_NATIVE_TOKEN as CryptoIconNames} size="sm" />
}
currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN?.toUpperCase()}
// currency={`(${formatCurrencyValue(Number(astraPrice) * dataSet[1] || '0', 'VND')})`}
// icon={
// <CryptoIcon name={process.env.NEXT_PUBLIC_NATIVE_TOKEN as CryptoIconNames} size="sm" />
// }
value={dataSet[1]}
fixNumber={5}
/>
Expand All @@ -109,10 +111,11 @@ const AccountAssets = ({ addressData, address }: Props) => {
<div className="money money-sm">
<Typography.Balance
size="sm"
currency={`(${formatCurrencyValue(Number(astraPrice) * dataSet[2] || '0', 'VND')})`}
icon={
<CryptoIcon name={process.env.NEXT_PUBLIC_NATIVE_TOKEN as CryptoIconNames} size="sm" />
}
currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN?.toUpperCase()}
// currency={`(${formatCurrencyValue(Number(astraPrice) * dataSet[2] || '0', 'VND')})`}
// icon={
// <CryptoIcon name={process.env.NEXT_PUBLIC_NATIVE_TOKEN as CryptoIconNames} size="sm" />
// }
value={dataSet[2]}
fixNumber={5}
/>
Expand All @@ -123,10 +126,11 @@ const AccountAssets = ({ addressData, address }: Props) => {
<div className="money money-sm">
<Typography.Balance
size="sm"
currency={`(${formatCurrencyValue(Number(astraPrice) * dataSet[3] || '0', 'VND')})`}
icon={
<CryptoIcon name={process.env.NEXT_PUBLIC_NATIVE_TOKEN as CryptoIconNames} size="sm" />
}
currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN?.toUpperCase()}
// currency={`(${formatCurrencyValue(Number(astraPrice) * dataSet[3] || '0', 'VND')})`}
// icon={
// <CryptoIcon name={process.env.NEXT_PUBLIC_NATIVE_TOKEN as CryptoIconNames} size="sm" />
// }
value={dataSet[3]}
fixNumber={5}
/>
Expand Down

0 comments on commit 7160c02

Please sign in to comment.