Skip to content
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

please merge #1

Open
wants to merge 161 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
cb1d517
testing mint function
vijaymurugann Nov 25, 2022
1a28dfc
some shit code
vijaymurugann Nov 28, 2022
54ec712
small changes
vijaymurugann Dec 6, 2022
53b4cbd
Added bug
vijaymurugann Dec 10, 2022
92a4d80
removed Image
vijaymurugann Dec 10, 2022
aaea365
Created A list and Upload files pages
vijaymurugann Dec 11, 2022
ffc9889
Removed logs and class
vijaymurugann Dec 11, 2022
65c658b
Fixed The Bugs
vijaymurugann Dec 11, 2022
6631ae6
Added to formdata
vijaymurugann Dec 12, 2022
eb933c4
Updated cpde
vijaymurugann Dec 15, 2022
51b523e
Changed to env value
vijaymurugann Dec 23, 2022
4d4f265
Updated ENV Data
vijaymurugann Dec 23, 2022
7e0d178
Updated
vijaymurugann Dec 23, 2022
57670bf
updated code
vijaymurugann Dec 23, 2022
b026770
REMOVED Upload Bug
vijaymurugann Dec 28, 2022
c3bf8c1
new commit
vijaymurugann Jan 4, 2023
e8fa52b
added asserts
vijaymurugann Jan 4, 2023
3f58e92
added header part
vijaymurugann Jan 4, 2023
f4354c1
added collection section
vijaymurugann Jan 4, 2023
0a4bc41
home page added
vijaymurugann Jan 4, 2023
8464e7e
changed
vijaymurugann Jan 6, 2023
1a718b9
Added colection page
vijaymurugann Jan 7, 2023
5bbec1b
user part 78% completed
vijaymurugann Jan 7, 2023
a582dc0
Updated NavBar
vijaymurugann Jan 9, 2023
5c09e15
Mint page updated
vijaymurugann Jan 9, 2023
fe30d12
Updated List Page
vijaymurugann Jan 9, 2023
398c7ee
Enanched code
vijaymurugann Jan 9, 2023
054028b
UPDATE : List/Collection Part
vijaymurugann Jan 9, 2023
77253bd
Added Mint function
vijaymurugann Jan 9, 2023
ad4972a
ADDED : Create Collection
vijaymurugann Jan 9, 2023
b318126
updated code
vijaymurugann Jan 9, 2023
5b8f874
deploy commit
vijaymurugann Jan 9, 2023
e5c98c6
removed eslint
vijaymurugann Jan 9, 2023
a0a01d4
modified code
vijaymurugann Jan 9, 2023
e0b6f97
modifed for vercel
vijaymurugann Jan 9, 2023
88f2265
Changed Card name
vijaymurugann Jan 9, 2023
9ba6129
Changed location
vijaymurugann Jan 9, 2023
adf94c1
modified
vijaymurugann Jan 9, 2023
e102273
Fixed bug
vijaymurugann Jan 9, 2023
6aabf53
modified code
vijaymurugann Jan 9, 2023
ac10aa7
Fixed style
vijaymurugann Jan 14, 2023
d7b67b1
Modified NAVBAR
vijaymurugann Jan 17, 2023
bbc3c75
modified style
vijaymurugann Jan 17, 2023
c2dd34b
fixed Style
vijaymurugann Jan 17, 2023
ea240b7
Vercel Check
vijaymurugann Jan 17, 2023
6634260
Merge branch 'main' into mintbase.2.0
vijaymurugann Jan 17, 2023
97a8fad
Merge pull request #3 from VijayAlpha/mintbase.2.0
vijaymurugann Jan 17, 2023
7fff771
Added JS files
vijaymurugann Jan 17, 2023
bea4df6
Style changed
vijaymurugann Jan 17, 2023
c4cdca2
small update
vijaymurugann Jan 20, 2023
1d15e62
spelling correction
vijaymurugann Jan 20, 2023
f200f3e
Mintbase 2.0
vijaymurugann Jan 23, 2023
9525dde
updated the package
vijaymurugann Feb 16, 2023
bb86ed0
minting working
vijaymurugann Mar 9, 2023
5a1eefe
single mint and list is finished
vijaymurugann Mar 9, 2023
f6fabfa
Versioning untracked files
vijaymurugann Mar 10, 2023
6e2e40b
removd singer
vijaymurugann Mar 10, 2023
2e7529d
code refactor
vijaymurugann Mar 13, 2023
18116d8
COMPLETED : Buy Token
vijaymurugann Mar 13, 2023
54c8871
UPDATED : Buy UX
vijaymurugann Mar 13, 2023
826342e
FIXED : Delete Collection
vijaymurugann Mar 13, 2023
730770f
FIXED : Style
vijaymurugann Mar 13, 2023
e330fe6
FIXED : Multi Token Mint
vijaymurugann Mar 14, 2023
9054ed8
FIXED : MInt UI
vijaymurugann Mar 14, 2023
151dfef
FIXED : Listing
vijaymurugann Mar 14, 2023
fa04d11
FIXED : Collection UX
vijaymurugann Mar 14, 2023
c03db9f
Merge pull request #4 from VijayAlpha/branch-2.0-sdk-try-main
vijaymurugann Mar 15, 2023
fd1b834
ADDED : Fileupload
vijaymurugann Mar 15, 2023
c6c6a4e
Merge pull request #5 from VijayAlpha/branch-2.0-sdk-try-main
vijaymurugann Mar 15, 2023
7d2c3e8
FIXED: Create Collection
vijaymurugann Mar 17, 2023
e6a9f60
Merge pull request #6 from VijayAlpha/branch-2.0-sdk-try-main
vijaymurugann Mar 17, 2023
3a0e51d
ADDED: Alert before delete collection
vijaymurugann Mar 17, 2023
8bf78c8
Merge pull request #7 from VijayAlpha/branch-2.0-sdk-try-main
vijaymurugann Mar 17, 2023
89de6f7
ALTERED
vijaymurugann Mar 23, 2023
f1bdb2c
ALTER: Footer
vijaymurugann Mar 23, 2023
c924484
ALTER: Basics
vijaymurugann Mar 23, 2023
a2825ee
UPDATED : ENV variables
vijaymurugann Mar 23, 2023
c5b4eac
Removed sorting
vijaymurugann Mar 23, 2023
a1f89dd
REMOVED: Comments
vijaymurugann Mar 23, 2023
cceb3b6
REMOVED : Comments
vijaymurugann Mar 23, 2023
1ca37d9
Merge branch 'main' into branch-2.0-sdk-try-main
vijaymurugann Mar 23, 2023
04c5b2c
Merge pull request #8 from VijayAlpha/branch-2.0-sdk-try-main
vijaymurugann Mar 23, 2023
03e66ee
UPDATED Code
vijaymurugann Mar 27, 2023
012dec9
Fixed Style
vijaymurugann Mar 28, 2023
5e39b81
changed the upload location
vijaymurugann Apr 3, 2023
67e88cd
MODIFIED: Footer
vijaymurugann Apr 3, 2023
8bc79f0
REMOVED: Videp
vijaymurugann Apr 3, 2023
c0f05c1
OPTIMIZED: For mainnet connection too
vijaymurugann Apr 3, 2023
984fbb6
FIXED: mainnet connection
vijaymurugann Apr 3, 2023
85a1a93
REPLACED: Supabase url env
vijaymurugann Apr 3, 2023
394f5b5
ADDED : Referral ID
vijaymurugann Apr 3, 2023
039e4b9
ADDED: Referral ID
vijaymurugann Apr 3, 2023
c725916
Merge pull request #10 from VijayAlpha/final
vijaymurugann Apr 3, 2023
81bd941
Update .env
vijaymurugann Apr 14, 2023
caa716d
Update CollectionCard.jsx
vijaymurugann Apr 14, 2023
5ccd383
Update .env
vijaymurugann Apr 14, 2023
7e97629
Update CollectionCard.jsx
vijaymurugann Apr 14, 2023
ce44142
UPDATED: Toggle menu
vijaymurugann Apr 17, 2023
f9dc131
BUGFIXED
vijaymurugann Apr 17, 2023
16686c7
FIXED: Footer
vijaymurugann Apr 17, 2023
f37e061
MINOR: FIx
vijaymurugann Apr 17, 2023
d731f05
FIX: Image Style fix
vijaymurugann Apr 17, 2023
b5256ff
FIX: Image upload
vijaymurugann Apr 17, 2023
5549aa9
FIXED: Nav bar for tab
vijaymurugann Apr 17, 2023
8d5e905
Merge branch 'main' into final
vijaymurugann Apr 17, 2023
dc73c32
Merge pull request #11 from VijayAlpha/final
vijaymurugann Apr 17, 2023
82333cd
ADDED : Image preview
vijaymurugann Apr 18, 2023
8ce2719
Merge branch 'final' of https://github.com/VijayAlpha/unlockable-cont…
vijaymurugann Apr 18, 2023
5226f3a
ADDED: Mint limit
vijaymurugann Apr 18, 2023
d849ca2
CREATED: redirect after mint
vijaymurugann Apr 18, 2023
f86c6e8
FIXED: Call back and price decimal
vijaymurugann Apr 18, 2023
2d08093
ADDED: total token property
vijaymurugann Apr 18, 2023
9171766
FIXED: Listing bug
vijaymurugann Apr 19, 2023
4856a42
Merge pull request #12 from VijayAlpha/final
vijaymurugann Apr 19, 2023
700fef8
ADDED: Multipy
vijaymurugann Apr 19, 2023
35d23da
ADDED: Sort by minted time
vijaymurugann Apr 19, 2023
897a3a4
ADDED: Total token calculator
vijaymurugann Apr 19, 2023
f2bbc3d
Merge pull request #13 from VijayAlpha/final
vijaymurugann Apr 19, 2023
2ab8c92
FIXED: width for nav in mobile
vijaymurugann Apr 24, 2023
1681394
REMOVED: custom param
vijaymurugann Apr 24, 2023
ccdc758
REMOVED: .html
vijaymurugann Apr 24, 2023
b83b65a
FIXED: Nav bar closing
vijaymurugann Apr 24, 2023
a2ec5dc
FIXED: Total Token Bug
vijaymurugann Apr 24, 2023
331f607
ADDED: owned and listed NFT
vijaymurugann Apr 24, 2023
6ee9772
FINAL: Owned token
vijaymurugann Apr 24, 2023
06af55c
FIXED: Listing bug (list only none listed tokens)
vijaymurugann Apr 24, 2023
f081c45
FIXED: For bild command
vijaymurugann Apr 24, 2023
032faa0
Merge pull request #15 from VijayAlpha/FINAL_2
vijaymurugann Apr 24, 2023
01f147c
REMOVED: Custom redirect
vijaymurugann Apr 25, 2023
0f67389
MODIFIED: To fetch latest content
vijaymurugann Apr 25, 2023
00cb2c2
MODIFED: To sort new collection
vijaymurugann Apr 25, 2023
b9e4443
FIXED: Upload Image issue
vijaymurugann Apr 25, 2023
671d004
REMOVED: logs
vijaymurugann Apr 26, 2023
0569728
Merge pull request #16 from VijayAlpha/FINAL_2
vijaymurugann Apr 26, 2023
3169d48
CODE: refined
vijaymurugann Apr 26, 2023
fa81266
Merge pull request #17 from VijayAlpha/FINAL_2
vijaymurugann Apr 26, 2023
f81e671
Update .env
vijaymurugann Apr 26, 2023
70f3575
FIXED: Diffrent Pricing
vijaymurugann Apr 27, 2023
4614a09
MOVED fetchGraphQL to packages
vijaymurugann Apr 27, 2023
b2fd561
Merge pull request #18 from VijayAlpha/FINAL_2
vijaymurugann Apr 27, 2023
02691b2
REMOVED LOG
vijaymurugann Apr 27, 2023
c7535d4
Changed from static image file to dynamic
vijaymurugann May 13, 2023
beb1648
ADDED: edit images
vijaymurugann May 13, 2023
c014bc4
edit collection added
vijaymurugann May 13, 2023
3ee1406
Updated package
vijaymurugann May 13, 2023
23e7dcd
ADDED: Sold out
vijaymurugann May 15, 2023
82795c7
Small buy fix
vijaymurugann May 15, 2023
7d9ffcf
ADDED: Owned Collections
vijaymurugann May 15, 2023
62c4605
example env
vijaymurugann May 15, 2023
963e22e
Merge pull request #20 from VijayAlpha/CODE_REFACTOR
vijaymurugann May 15, 2023
fb5c8ea
FIXED: bug
vijaymurugann May 15, 2023
1e82b9e
Merge pull request #21 from VijayAlpha/CODE_REFACTOR
vijaymurugann May 15, 2023
622e6f6
Improved UX
vijaymurugann May 15, 2023
5dee8cf
UI improve
vijaymurugann May 15, 2023
056c171
Merge pull request #22 from VijayAlpha/CODE_REFACTOR
vijaymurugann May 15, 2023
5708e40
FIXED the gas issuse
vijaymurugann Jun 5, 2023
562109f
Merge branch 'main' into CODE_REFACTOR
vijaymurugann Jun 5, 2023
97c37d6
Merge pull request #23 from VijayAlpha/CODE_REFACTOR
vijaymurugann Jun 5, 2023
1e78a24
REMOVED: Unwanted style files
vijaymurugann Nov 30, 2023
c4c777a
CHANGES: replaced with words
vijaymurugann Nov 30, 2023
6335636
Update README.md
vijaymurugann Nov 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REACT_APP_NEAR_NETWORK=testnet
REACT_APP_MINTBASE_API=511a3b51-2ed5-4a27-b165-a27a01eebe0a
CONTRACT_ID=unlockableteststore.mintspace2.testnet
119 changes: 67 additions & 52 deletions components/Buy.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/* eslint-disable @next/next/no-img-element */
// eslint-disable-next-line @next/next/no-img-element
import { useEffect, useState } from "react";
import { Wallet, Chain, Network } from "mintbase";

export const Buy = ({ meta }) => {
const [nftdata, setNFTData] = useState();
const [nftData, setNFTData] = useState();

useEffect(() => {
async function fetchGraphQL(operationsDoc, operationName, variables) {
Expand All @@ -17,8 +19,7 @@ export const Buy = ({ meta }) => {
}),
}
);
// console.log(`hi: ${await result.json()}`);
return await result;
return result.json();
}
const operations = (metadata_id_) => {
return `
Expand All @@ -40,76 +41,90 @@ export const Buy = ({ meta }) => {
};

const setbuydata = async () => {
setNFTData(
await (await fetchGraphQL(operations(meta), "checkNFT", {})).json()
const returnedNftData = await fetchGraphQL(
operations(meta),
"checkNFT",
{}
);
setNFTData(returnedNftData.data.mb_views_active_listings[0]);
};
setbuydata();
}, []);
});

const onclkBtn = async () => {
console.log(nftdata);
const { data, error } = await new Wallet().init({
networkName: Network.testnet,
chain: Chain.near,
apiKey: "511a3b51-2ed5-4a27-b165-a27a01eebe0a",
});

const { wallet } = data;
const tokenId = `${nftdata.data.mb_views_active_listings[0].nft_contract_id}:${nftdata.data.mb_views_active_listings[0].token_id}`;
const price = `${nftdata.data.mb_views_active_listings[0].price.toLocaleString(
"fullwide",
{ useGrouping: false }
)}`;
const tokenId = `${nftData.nft_contract_id}:${nftData.token_id}`;
const price = `${nftData.price.toLocaleString("fullwide", {
useGrouping: false,
})}`;

const marketAddress = nftdata.data.mb_views_active_listings[0].market_id;
const marketAddress = nftData.market_id;

const buyNFT = await wallet.makeOffer(tokenId, price, {
await wallet.makeOffer(tokenId, price, {
marketAddress,
});
console.log(`buynft: ${buyNFT}`);
};

const ele = nftdata ? (
<section class="section section-buy-nft">
<div class="collection">
<div class="collection__left">
<div class="right">
<img
src={nftdata.data.mb_views_active_listings[0].media}
alt="NFT image"
class="collection__nft ma--bottom"
/>
<h2 class="collection__name ma--bottom">
{nftdata.data.mb_views_active_listings[0].title}
</h2>
<p class="collection__description ma--bottom text-base--1">
{nftdata.data.mb_views_active_listings[0].description}
</p>
<span class="collection__price text--h2 ma--bottom">
{nftdata.data.mb_views_active_listings[0].price.toLocaleString(
"fullwide",
{ useGrouping: false }
) % 18}
const ele = nftData ? (
<>
<section className="section section-buy-nft">
<h1 className="text--h1">
Buy This NFT To Unlock This Collection
</h1>
</section>
<section className="section section-buy-nft">
<div className="collection">
<div className="collection__left">
<div className="right">
<img
src="https://cryptologos.cc/logos/near-protocol-near-logo.svg?v=023"
alt="NEAR"
class="collection__price--img"
src={nftData.media}
alt="NFT image"
className="collection__nft ma--bottom"
/>
</span>
</div>
<div class="left">
<button
class="btn collection__btn"
id="btn-buy-nft"
onClick={() => onclkBtn()}
>
Buy to Unlock
</button>
<h2 className="collection__name ma--bottom">{nftData.title}</h2>
<p className="collection__description ma--bottom text-base--1">
{nftData.description}
</p>
<span className="collection__price text--h2 ma--bottom">
{Math.round(
nftData.price.toLocaleString("fullwide", {
useGrouping: false,
}) *
10 ** -24
)}
<img
src="https://cryptologos.cc/logos/near-protocol-near-logo.svg?v=023"
alt="NEAR"
className="collection__price--img"
/>
</span>
</div>
<div className="left">
<button
className="btn collection__btn"
id="btn-buy-nft"
onClick={() => onclkBtn()}
>
Buy to Unlock
</button>
</div>
</div>
</div>
</div>
</section>
</section>
</>
) : (
<h1>hi</h1>
<section className="section section-buy-nft">
<h1 className="text--h1">
Sorry! This NFT is Sold Out. <br />
Please Check Other Collections.
</h1>
</section>
);

return ele;
Expand Down
38 changes: 19 additions & 19 deletions components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
export const Footer = () => {
return (
<footer class="flex footer">
<div class="footer__div">
<div class="flex">
<img src="/star.svg" class="footer__logo" />
<h2 class="text--h2 footer__title ma--side">Allie eve knox</h2>
<footer className="flex footer">
<div className="footer__div">
<div className="flex">
<img src="/star.svg" className="footer__logo" />
<h2 className="text--h2 footer__title ma--side">Allie eve knox</h2>
</div>
<div class="">
<div className="">
<ul>
<li class="footer__list">
<li className="footer__list">
<a href="#">Privacy Policy</a>
</li>
<li class="footer__list">
<li className="footer__list">
<a href="#">Terms of Service</a>
</li>
</ul>
</div>
</div>
<div class="footer__div">
<h4 class="text--h2 footer__title">Follow Me</h4>
<div class="">
<a href="#" class="footer__link">
<img src="/facebook.svg" alt="social-icons" class="footer__img" />
<div className="footer__div">
<h4 className="text--h2 footer__title">Follow Me</h4>
<div className="">
<a href="#" className="footer__link">
<img src="/facebook.svg" alt="social-icons" className="footer__img" />
</a>
<a href="#" class="footer__link">
<a href="#" className="footer__link">
<img
src="/instagram-alt.svg"
alt="social-icons"
class="footer__img"
className="footer__img"
/>
</a>
<a href="#" class="footer__link">
<img src="/twitter.svg" alt="social-icons" class="footer__img" />
<a href="#" className="footer__link">
<img src="/twitter.svg" alt="social-icons" className="footer__img" />
</a>
<a href="#" class="footer__link">
<img src="/google.svg" alt="social-icons" class="footer__img" />
<a href="#" className="footer__link">
<img src="/google.svg" alt="social-icons" className="footer__img" />
</a>
</div>
</div>
Expand Down
34 changes: 17 additions & 17 deletions components/HowItWorks.jsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
export const HowItWorks = () => {
return (
<section class="section-how-it-works section text--center">
<div class="container">
<h2 class="text--h2 ma--bottom">How it works</h2>
<h1 class="HIW text--h1">Mint, Watch and Sell.</h1>
<section className="section-how-it-works section text--center">
<div className="container">
<h2 className="text--h2 ma--bottom">How it works</h2>
<h1 className="HIW text--h1">Mint, Watch and Sell.</h1>
</div>
<div class="container flex">
<div class="">
<img class="HIW__img" src="/master-card.svg" alt="" />
<h3 class="HIW__text">Buy NFT</h3>
<div className="container flex">
<div className="">
<img className="HIW__img" src="/master-card.svg" alt="" />
<h3 className="HIW__text">Buy NFT</h3>
</div>
<div class="">
<img class="HIW__img" src="/unlock-alt.svg" alt="" />
<h3 class="HIW__text">Unlock Content</h3>
<div className="">
<img className="HIW__img" src="/unlock-alt.svg" alt="" />
<h3 className="HIW__text">Unlock Content</h3>
</div>
<div class="">
<img class="HIW__img" src="/image-v.svg" alt="" />
<h3 class="HIW__text">Watch</h3>
<div className="">
<img className="HIW__img" src="/image-v.svg" alt="" />
<h3 className="HIW__text">Watch</h3>
</div>
<div class="">
<img class="HIW__img" src="/process.svg" alt="" />
<h3 class="HIW__text">Resell NFT</h3>
<div className="">
<img className="HIW__img" src="/process.svg" alt="" />
<h3 className="HIW__text">Resell NFT</h3>
</div>
</div>
</section>
Expand Down
116 changes: 116 additions & 0 deletions components/List.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
import { Wallet, Network, Chain } from "mintbase";
import { useState, useEffect, useRef } from "react";
import { MintbaseNFT } from "./mintBaseNFT";

const List = () => {
const [isLoading, setIsLoading] = useState(true);
const [nftList, setNftList] = useState();
const dataFetchedRef = useRef(false);

const loadOwnedNFT = async () => {
try {
const { data: walletData, error } = await new Wallet().init({
networkName: Network.testnet,
chain: Chain.near,
apiKey: process.env.REACT_APP_MINTBASE_API,
});

console.log(process.env.REACT_APP_MINTBASE_API);

const { wallet } = walletData;

const { data: details } = await wallet.details();

if (error) {
console.log(error);
}

async function fetchGraphQL(operationsDoc, operationName, variables) {
const result = await fetch(
"https://interop-testnet.hasura.app/v1/graphql",
{
method: "POST",
body: JSON.stringify({
query: operationsDoc,
variables: variables,
operationName: operationName,
}),
}
);
return result.json();
}
const operations = (accountId, contract_id) => {
return `
query ownedNFT {
mb_views_nft_tokens(
distinct_on: metadata_id
where: {owner: {_eq: "${accountId}"}, _and: {burned_timestamp: {_is_null: true}}, minter: {_eq: "${accountId}"}, nft_contract_id: {_eq: "${contract_id}"}}
) {
nft_contract_id
title
description
media
metadata_id
}
}
`;
};

const contract_id = "unlockableteststore.mintspace2.testnet"

const returnedNftList = await fetchGraphQL(
operations(details.accountId , contract_id),
"ownedNFT",
{}
);

setNftList(returnedNftList.data.mb_views_nft_tokens);
setIsLoading(false);
} catch (error) {
console.log(error);
}
};

useEffect(() => {
if (dataFetchedRef.current) return;
dataFetchedRef.current = true;
loadOwnedNFT();
});

return (
<div className="main">
<section className="title text--center">
<div className="container">
<h1 className="HIW text--h1">List Your NFT</h1>
</div>
</section>

{isLoading === true ? (
<section className="section section-buy-nft">
<h2 className="text--h2 ma--bottom">Loading...</h2>
</section>
) : (
<section className="flex">
{nftList.length === 0 ? (
<section className="section section-buy-nft">
<h2 className="text--h2 ma--bottom">No NFT</h2>
</section>
) : (
nftList.map((nftData, id) => {
return (
<MintbaseNFT
nft={nftData}
buttonName={"List for sale"}
route={"list"}
key={id}
/>
);
})
)}
</section>
)}
</div>
);
};

export default List;
Loading