diff --git a/packages/nextjs/app/marketplace/_components/Marketplace.tsx b/packages/nextjs/app/marketplace/_components/Marketplace.tsx index 2797054..6a819a6 100644 --- a/packages/nextjs/app/marketplace/_components/Marketplace.tsx +++ b/packages/nextjs/app/marketplace/_components/Marketplace.tsx @@ -141,10 +141,10 @@ export const Marketplace = () => { } // Debugging: Log the Purchase Events - console.log("Purchase Events:", purchaseEvents); + // console.log("Purchase Events:", purchaseEvents); // Debugging: Log the listed collectibles before filtering - console.log("Listed Collectibles before filtering:", collectiblesUpdate); + // console.log("Listed Collectibles before filtering:", collectiblesUpdate); // Filter out NFTs that have been purchased const updatedCollectibles = collectiblesUpdate.filter(collectible => { @@ -152,12 +152,12 @@ export const Marketplace = () => { const purchaseItemId = Number(purchase.args.itemId); // Convert itemId from Purchase to number return purchaseItemId === collectible.listingId; // Ensure both are numbers for comparison }); - console.log(`Collectible ${collectible.listingId} has been purchased:`, hasBeenPurchased); + // console.log(`Collectible ${collectible.listingId} has been purchased:`, hasBeenPurchased); return !hasBeenPurchased; }); // Debugging: Log the filtered collectibles - console.log("Filtered Collectibles:", updatedCollectibles); + // console.log("Filtered Collectibles:", updatedCollectibles); // Update state with filtered collectibles setListedCollectibles(updatedCollectibles); @@ -187,7 +187,7 @@ export const Marketplace = () => {
No NFTs found
) : ( -
+
{listedCollectibles.map(item => ( ))} diff --git a/packages/nextjs/app/marketplace/_components/NFTCard.tsx b/packages/nextjs/app/marketplace/_components/NFTCard.tsx index c90bd38..34dc7b2 100644 --- a/packages/nextjs/app/marketplace/_components/NFTCard.tsx +++ b/packages/nextjs/app/marketplace/_components/NFTCard.tsx @@ -40,7 +40,7 @@ export const NFTCard = ({ nft }: { nft: Collectible }) => { watch: true, }); - console.log("usdcAllowance", usdcAllowance); + // console.log("usdcAllowance", usdcAllowance); const handleBuyNFT = async () => { if (!nft.listingId || !nft.price || !nft.payableCurrency) return; // Skip if required data is missing @@ -65,7 +65,7 @@ export const NFTCard = ({ nft }: { nft: Collectible }) => { }; const handleApproveUSDC = async () => { - if (!nft.listingId || !nft.price || !nft.payableCurrency) return; // Skip if required data is missing + if (!nft.price || !nft.payableCurrency) return; // Skip if required data is missing try { // let value; @@ -101,21 +101,21 @@ export const NFTCard = ({ nft }: { nft: Collectible }) => {
{nft.listingId ? ( setActiveTab("buyNFT")} > Buy NFT ) : ( setActiveTab("mintNFT")} > Mint NFT )} setActiveTab("info")} > Info @@ -154,7 +154,7 @@ export const NFTCard = ({ nft }: { nft: Collectible }) => { {requiresApproval ? (
) : ( -
+
{myAllCollectibles.map(item => ( ))} diff --git a/packages/nextjs/app/myProfile/_components/MyProfile.tsx b/packages/nextjs/app/myProfile/_components/MyProfile.tsx index 40c454c..a448cdc 100644 --- a/packages/nextjs/app/myProfile/_components/MyProfile.tsx +++ b/packages/nextjs/app/myProfile/_components/MyProfile.tsx @@ -123,19 +123,19 @@ export const MyProfile: NextPage = () => {
setActiveTab("your-nfts")} > Your NFTs setActiveTab("nfts-on-sale")} > NFTs on Sale setActiveTab("past-sales")} > Past Sales diff --git a/packages/nextjs/app/myProfile/_components/NFTCard.tsx b/packages/nextjs/app/myProfile/_components/NFTCard.tsx index 2e2ee66..64298b6 100644 --- a/packages/nextjs/app/myProfile/_components/NFTCard.tsx +++ b/packages/nextjs/app/myProfile/_components/NFTCard.tsx @@ -91,15 +91,21 @@ export const NFTCard = ({ nft }: { nft: Collectible }) => {
{/* Tabs navigation */}
-
@@ -171,7 +180,6 @@ export const NFTCard = ({ nft }: { nft: Collectible }) => {
{/* Payable Currency Toggle */}
-

List NFT for sale

Currency
-
- {isGaslessMinting ? ( - - ) : ( - - )} - +
{/* Toggle Button for Gasless Mint */} + + {isGaslessMinting ? ( + + ) : ( + + )}
{uploadedIpfsPath && (