Skip to content

Commit

Permalink
fix: wrong link when click address transfer internal
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Apr 3, 2023
1 parent dd23e01 commit 7a1a7b8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ellipseBetweenText } from '@astraprotocol/astra-ui'
import CopyButton from 'components/Button/CopyButton'
import Typography from 'components/Typography'
import Image from 'next/image'
import { LinkMaker } from 'utils/helper'
import { Content, InternalTransferContent } from '..'

const ContractTransferInternal = ({ content }: { content: Content }) => {
Expand All @@ -25,12 +26,12 @@ const ContractTransferInternal = ({ content }: { content: Content }) => {
Transfer <span className="money money-sm">{t.value} ASA</span>
{' '}
From{' '}
<Typography.LinkText href={t.from || ''}>
<Typography.LinkText href={LinkMaker.address(t.from || '')}>
{t.fromText ? `${t.fromText} (${ellipseBetweenText(t.from)})` : ellipseBetweenText(t.from)}
</Typography.LinkText>
{' '}
To{' '}
<Typography.LinkText href={t.to || ''}>
<Typography.LinkText href={LinkMaker.address(t.to || '')}>
{t.toText ? `${t.toText} (${ellipseBetweenText(t.to)})` : ellipseBetweenText(t.to)}
</Typography.LinkText>
</span>
Expand Down

0 comments on commit 7a1a7b8

Please sign in to comment.