diff --git a/app/components/Snapshot/Snapshot.tsx b/app/components/Snapshot/Snapshot.tsx index a68a469..ee1e23c 100644 --- a/app/components/Snapshot/Snapshot.tsx +++ b/app/components/Snapshot/Snapshot.tsx @@ -216,7 +216,24 @@ const SkeletonImagePreview = () => { ) } +export interface MintedNFT { + type: 'minted' + tokenId: string + userAddress: string + gameGeneration: string + transactionHash: string + contractAddress: string +} + +export interface PendingNFT { + type: 'pending' + generation: string + status: string + txHash: string + userId: string +} +export type NFT = MintedNFT | PendingNFT interface Props { readonly onClick?: React.MouseEventHandler readonly onClickTwitter?: React.MouseEventHandler @@ -228,6 +245,8 @@ interface Props { readonly initial?: AnimationProps['initial'] readonly animate?: AnimationProps['animate'] readonly exit?: AnimationProps['exit'] + readonly refreshPage?: () => void + readonly nft?: NFT } const Snapshot = ({ @@ -242,6 +261,7 @@ const Snapshot = ({ animate, exit, nft, + refreshPage, }: Props) => { const formattedUser = user ? getShortChecksumAddress(user) : null @@ -292,7 +312,7 @@ const Snapshot = ({ width: '100%', }} > - {gameGeneration && } + {gameGeneration && } {large && (