Skip to content

Commit

Permalink
feat: flowty link
Browse files Browse the repository at this point in the history
  • Loading branch information
LanfordCai committed Oct 21, 2023
1 parent adbb8b1 commit 79ac535
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion components/common/NFTDetailView.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Decimal from "decimal.js"
import Image from "next/image"
import { useRouter } from "next/router"
import { useRecoilState } from "recoil"
import { getFlowverseLink, getImageSrcFromMetadataViewsFile, getRarityColor, getResourceType, isValidFlowAddress } from "../../lib/utils"
import { getFlowtyLink, getFlowverseLink, getImageSrcFromMetadataViewsFile, getRarityColor, getResourceType, isValidFlowAddress } from "../../lib/utils"
import NFTTransferModal from "./NFTTransferModal"
import {
basicNotificationContentState,
Expand Down Expand Up @@ -325,6 +325,19 @@ export default function NFTDetailView(props) {
<div className="w-full flex gap-x-4 justify-between items-center">
<label className="font-bold text-black text-3xl">{display.name}</label>
<div className="flex gap-x-2 justify-between items-center">
{
contractAddress && contractName ?
<a
href={getFlowtyLink(contractAddress, contractName)}
target="_blank"
rel="noopener noreferrer"
>
<div className="h-[32px] aspect-square shrink-0 relative">
<Image src={"/flowty.jpg"} alt="" fill sizes="5vw" className="object-contain rounded-full" />
</div>
</a> : null
}

{
contractName ?
<a
Expand Down

1 comment on commit 79ac535

@vercel
Copy link

@vercel vercel bot commented on 79ac535 Oct 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.