Skip to content

Commit

Permalink
update scan url
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Aug 6, 2023
1 parent f66b0d0 commit 228287f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/WalletPopup/Transactions/TransactionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { CancellingOrderInfo } from 'components/swapv2/LimitOrder/useCancellingO
import { APP_PATHS } from 'constants/index'
import { NETWORKS_INFO } from 'constants/networks'
import useTheme from 'hooks/useTheme'
import { getAxelarScanUrl } from 'pages/CrossChain'
import {
TRANSACTION_TYPE,
TransactionDetails,
Expand Down Expand Up @@ -409,7 +410,14 @@ export default forwardRef<HTMLDivElement, Prop>(function TransactionItem(
<Text color={theme.text} fontSize="14px">
{type}
</Text>
<ExternalLinkIcon color={theme.subText} href={getEtherscanLink(chainId, hash, 'transaction')} />
<ExternalLinkIcon
color={theme.subText}
href={
type === TRANSACTION_TYPE.CROSS_CHAIN_SWAP
? getAxelarScanUrl(hash)
: getEtherscanLink(chainId, hash, 'transaction')
}
/>
</Row>
<Status transaction={transaction} cancellingOrderInfo={cancellingOrderInfo} />
</Flex>
Expand Down

0 comments on commit 228287f

Please sign in to comment.