-
-
Notifications
You must be signed in to change notification settings - Fork 2
feat: draft for erc721 card #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Connected to Huly®: DAPPK-147 |
contractAddress, | ||
tokenId, | ||
}: PropsWithChildren<NFTCardType>) => { | ||
const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this case it's fine while generally we might prefer nanostore over context provider
https://github.com/nanostores/nanostores
@@ -0,0 +1,74 @@ | |||
export interface NFTResponse { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can put types into the api.ts
className="text-right font-semibold text-black" | ||
> | ||
{nftData?.owner?.ens_domain_name ?? | ||
formatAddress(nftData?.owner?.hash ?? "")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets use existing components / utils
we do hv
contractAddress: string; | ||
} | ||
|
||
function ERC721CardStories({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we create 2 stories for 2 separate smart vs dumb components
(similar to TransactionTable
vs TransactionTableWithDetails
end goal is we don't dictate the data source
export function NFTMedia() { | ||
const { nftData } = useNFT(); | ||
|
||
const imageUrl = nftData?.image_url; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iyansr do you hv example data for blockscout nft url?
many NFT provide ipfs hash so we need explicit ipfs gateway control on the image to be shown
(reference getIpfsGatewayUrl
)
Preview