Skip to content

Commit

Permalink
fix: update tx type icon
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Nov 6, 2022
1 parent d133324 commit ea19bbf
Show file tree
Hide file tree
Showing 2 changed files with 246 additions and 30 deletions.
7 changes: 6 additions & 1 deletion views/transactions/TransactionBriefRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default function TransactionBriefRow({
transactionType
}: TransactionBriefRowProps) {
const transactionQuery = evmType ? { type: evmType } : null
const isEvm = transactionType === TransacionTypeEnum.Ethermint
return (
<RowShowAnimation action={newTransaction}>
<div
Expand All @@ -76,7 +77,11 @@ export default function TransactionBriefRow({
className={clsx(styles.icon, 'margin-right-sm', 'sm-hide')}
// style={{ alignSelf: !to && !from ? '' : 'baseline' }}
>
<Image src={'/images/icons/transaction.png'} alt="transactions" height={24} width={24} />
{isEvm ? (
<Image alt={'eth'} src={`/images/icons/eth.svg`} width={24} height={24} />
) : (
<Image alt={'cosmos'} src={`/images/icons/atom.svg`} width={24} height={24} />
)}
</div>
<div className={clsx(styles.content)}>
<div className={clsx('block-ver-center', styles.info, 'sm-wrap')}>
Expand Down
Loading

0 comments on commit ea19bbf

Please sign in to comment.