Skip to content

Conversation

nachoiacovino
Copy link
Contributor

No description provided.

Copy link
Member

@jnsdls jnsdls left a comment

Choose a reason for hiding this comment

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

I'd like to handle this more explicitly I think

Comment on lines 24 to +31
export const ClaimPage: React.FC<React.PropsWithChildren<ClaimPageProps>> = ({
contract,

tokenId,
children,
}) => {
const { data: metadata, isLoading } = useContractMetadata(contract);
const { data: nft } = useNFT(contract, tokenId);

Copy link
Member

Choose a reason for hiding this comment

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

I would like to split this into 2 again now, TokenClaimPage (with the token) and ContractClaimPage (without the token)

we shouldn't even hav useNFT in the contract claim page case and we might not need contract metadata in the token claim page case? might just want to render token name and description instead?

Comment on lines +45 to +48
{tokenId && nft?.metadata ? (
<ThirdwebNftMedia metadata={nft.metadata} />
) : metadata?.image ? (
<ThirdwebNftMedia metadata={metadata} />
Copy link
Member

Choose a reason for hiding this comment

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

yeah ideally we split these high level into 2 components, one for erc20 and erc721 and one for erc1155

@nachoiacovino
Copy link
Contributor Author

Superseded by #73

@jnsdls jnsdls deleted the ni/erc-1155-image branch November 16, 2022 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants