Skip to content

Commit

Permalink
Merge pull request #98 from P4-Games/feature/nft-show-id
Browse files Browse the repository at this point in the history
merge feature/nft-show-id into develop
  • Loading branch information
dappsar authored Sep 25, 2024
2 parents 77130ad + fc8210f commit ad9e8a8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/sections/nfts/nft-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,24 @@ export default function NftItem({ nft }: Props) {
window.open(linkShare, '_blank')
}

const renderNftId = (
<Box
sx={{
position: 'absolute',
top: 30,
left: 25,
backgroundColor: 'rgba(0, 0, 0, 0.6)',
padding: '2px 6px',
borderRadius: '4px',
color: 'white',
fontSize: '10px',
zIndex: 1
}}
>
{`#${nftId}`}
</Box>
)

return (
<>
<Card>
Expand All @@ -68,6 +86,7 @@ export default function NftItem({ nft }: Props) {
alignItems: 'center'
}}
>
{renderNftId}
<Link
href={linkMarketplace}
target='_blank'
Expand Down

0 comments on commit ad9e8a8

Please sign in to comment.