Skip to content

Commit

Permalink
add link for nft
Browse files Browse the repository at this point in the history
  • Loading branch information
ost-ptk committed Sep 5, 2024
1 parent b2ba3f9 commit f6fcf68
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/apps/popup/pages/deploy-details/components/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Trans, useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
import styled from 'styled-components';

import { getBlockExplorerContractUrl } from '@src/constants';
import { getBlockExplorerContractUrl, getContractNftUrl } from '@src/constants';
import { isEqualCaseInsensitive } from '@src/utils';

import { selectApiConfigBasedOnActiveNetwork } from '@background/redux/settings/selectors';
Expand Down Expand Up @@ -169,9 +169,15 @@ export const NftInfoRow = ({
</Typography>
{nftTokenIds.map(id => (
<NftIndexContainer>
<Typography type="captionRegular" color="contentAction" ellipsis>
{id}
</Typography>
<Link
color="contentAction"
target="_blank"
href={getContractNftUrl(casperLiveUrl, publicKey || '', id)}
>
<Typography type="captionRegular" color="contentAction" ellipsis>
{id}
</Typography>
</Link>
</NftIndexContainer>
))}
</AlignedFlexRowContainer>
Expand Down

0 comments on commit f6fcf68

Please sign in to comment.