Skip to content

Commit

Permalink
fix: upppercase asa name
Browse files Browse the repository at this point in the history
  • Loading branch information
vien.nguyen2-tiki committed Jan 31, 2023
1 parent 0c445af commit 605fc12
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
6 changes: 1 addition & 5 deletions views/accounts/tabs/AddressTransactionTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ const AddressTransactionTab = ({ address }: Props) => {
)}
</div>
</div>
<div
style={{ justifyContent: 'space-between', display: 'flex' }}
className="padding-right-xl padding-left-xl"
>
<div></div>
<div className="padding-right-xl padding-left-xl flex flex-justify-end">
<div>
{isHasData && (
<Pagination
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const ContractTransaction = ({ transaction }: Props) => {
size="2xs"
value={convertBalanceToView(transaction.gasUsed)}
fixNumber={7}
currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN}
currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN.toUpperCase()}
classes="contrast-color-70"
/>
)}
Expand Down
5 changes: 1 addition & 4 deletions views/accounts/tabs/ContractTransactionTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ const ContractTransactionTab = ({ address }: Props) => {
)}
</div>
</div>
<div
style={{ justifyContent: 'space-between', display: 'flex' }}
className="padding-right-xl padding-left-xl"
>
<div className="padding-right-xl padding-left-xl flex flex-justify-end">
{isHasData && (
<div>
<PaginationLite currentPage={currentPage} hasNext={hasNextPage} onChange={onPagingChange} />
Expand Down
3 changes: 2 additions & 1 deletion views/transactions/hook/useInternalTransactions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CryptoIconNames } from '@astraprotocol/astra-ui/lib/es/components/CryptoIcon'
import API_LIST from 'api/api_list'
import { formatEther } from 'ethers/lib/utils'
import { useCallback } from 'react'
Expand All @@ -23,7 +24,7 @@ export default function useInternalTransactions({ hash }: { hash: string }) {
blockNumber: Number(internalItem?.blockNumber),
updatedAt: Number(internalItem?.timeStamp) * 1000,
value: formatEther(internalItem?.value || '0'),
valueToken: 'asa',
valueToken: process.env.NEXT_PUBLIC_NATIVE_TOKEN.toUpperCase() as CryptoIconNames,
// valueCurrency: internalItem.
hash: internalItem?.transactionHash,
labelStatus: upperCaseFirstLetterOfWord(
Expand Down

0 comments on commit 605fc12

Please sign in to comment.