Skip to content

Commit

Permalink
fix: show title text in address tx list
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Jul 19, 2023
1 parent d88b9ad commit 54c9b37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions components/Tag/PolygonTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface Props {
}

export default function PolygonTag({ text, fontType = 'Manrope', hasArrowRight = true, ellipsis }: Props) {
console.log('txMethod', text)
return (
<div
className={clsx(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface Props {
}

const AddressTransaction = ({ transaction }: Props) => {
const evmType = transaction?.messages ? transaction?.messages[0]?.evmType : ''
const txMethod = transaction?.messages ? transaction?.messages[0]?.evmType : ''
const isEvm = isEvmTransactionType(transaction?.type)
const { isMobile } = useMobileLayout()
const txsHashLength = isMobile ? CONFIG.TXS_MOBILE_SPLIT_LENGTH : CONFIG.TXS_DESKTOP_SPLIT_LENGTH
Expand Down Expand Up @@ -56,7 +56,8 @@ const AddressTransaction = ({ transaction }: Props) => {
>
{ellipseBetweenText(transaction.hash, txsHashLength, txsHashLength).toLowerCase()}
</Typography.LinkText>
{evmType && <PolygonTag hasArrowRight={false} fontType="Titi" text={evmType} />}
<></>
{txMethod && <PolygonTag hasArrowRight={false} fontType="Titi" text={txMethod} />}
</Row>
{(transaction.from || transaction.to) && (
<div className="margin-top-xs">
Expand Down Expand Up @@ -107,7 +108,7 @@ const AddressTransaction = ({ transaction }: Props) => {
<div className={clsx('col-2 block-ver-center')}>
<Typography.Label
text={ellipseRightText(transaction.type, 13)}
// titleText={type}
titleText={transaction.type}
backgroundShape="rectangle"
radius="radius-2xl"
font="text-bold text text-sm"
Expand Down

0 comments on commit 54c9b37

Please sign in to comment.