From c34957153eb55096b530768c61ca9915dc96c4d7 Mon Sep 17 00:00:00 2001 From: adetyaz Date: Sat, 9 Nov 2024 13:40:34 +0100 Subject: [PATCH] fix --- src/app/[id]/page.tsx | 7 +++---- src/components/claim-nft.tsx | 10 +++++++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/app/[id]/page.tsx b/src/app/[id]/page.tsx index d836071..d632296 100644 --- a/src/app/[id]/page.tsx +++ b/src/app/[id]/page.tsx @@ -8,8 +8,8 @@ import { ClaimNft } from '@/components/claim-nft' import { toast } from 'react-toastify' import { VoiceAssistant } from '@/components/voice-assistant' import { useQueries, useQuery } from '@tanstack/react-query' -import { baseURI, getAvatar, getAvatars, getPhygital, getPhygitals, getWebXR } from '@/utils/queries' -import { AvatarType, PhygitalType, WebXRType } from '@/types/types' +import { getAvatar, getPhygitals, getWebXR } from '@/utils/queries' +import { PhygitalType } from '@/types/types' import Header from '@/components/header' import Moralis from 'moralis' import { ProvenanceAttestation } from '@/components/provenance-attestation' @@ -24,7 +24,6 @@ export default function Home({ params }: { params: { id: string } }) { const [userType, setUserType] = useState('guest') const [showProvenance, setShowProvenance] = useState(false) const [notClaimed, setNotClaimed] = useState(false) - const { address } = useAccount() @@ -233,7 +232,7 @@ export default function Home({ params }: { params: { id: string } }) { contractAddress={phygital.contract_address} /> - )} + )} ) diff --git a/src/components/claim-nft.tsx b/src/components/claim-nft.tsx index 9da7376..bd7fd6b 100644 --- a/src/components/claim-nft.tsx +++ b/src/components/claim-nft.tsx @@ -7,6 +7,7 @@ import { toast } from 'react-toastify' import { useState } from 'react' import { ConnectWallet } from './connect-wallet' import { baseURI } from '@/utils/queries' +import { X } from 'lucide-react' export const ClaimNft = ({ onClose, @@ -40,6 +41,10 @@ export const ClaimNft = ({ } } + const handleClick = () => { + onClose(false) + } + const removePrefix = (uri: string) => { return uri?.substring(7, uri.length) } @@ -48,8 +53,11 @@ export const ClaimNft = ({ <> {!claimNft ? (
+
+ +
-
+

Congratulations!