fix: build analytics page
This commit is contained in:
parent
7500563cb9
commit
4fe33359e0
|
@ -311,14 +311,14 @@ function InnerAnalytics({ mint }: { mint: MintInfo }) {
|
||||||
const [sortedSales, setSortedSales] = useState<number[]>([]);
|
const [sortedSales, setSortedSales] = useState<number[]>([]);
|
||||||
const {
|
const {
|
||||||
metadata,
|
metadata,
|
||||||
stores,
|
// stores,
|
||||||
auctionManagersByAuction,
|
auctionManagersByAuction,
|
||||||
bidderPotsByAuctionAndBidder,
|
bidderPotsByAuctionAndBidder,
|
||||||
auctionDataExtended,
|
auctionDataExtended,
|
||||||
} = useMeta();
|
} = useMeta();
|
||||||
|
|
||||||
const totalNFTs = metadata.length;
|
const totalNFTs = metadata.length;
|
||||||
const totalMarketplaces = Object.values(stores).length;
|
// const totalMarketplaces = Object.values(stores).length;
|
||||||
|
|
||||||
const auctionViews = useAuctions();
|
const auctionViews = useAuctions();
|
||||||
|
|
||||||
|
@ -353,7 +353,8 @@ function InnerAnalytics({ mint }: { mint: MintInfo }) {
|
||||||
</Button>
|
</Button>
|
||||||
<h1>Overview</h1>
|
<h1>Overview</h1>
|
||||||
<h3>
|
<h3>
|
||||||
Total NFTs: {totalNFTs} Total Marketplaces: {totalMarketplaces}
|
Total NFTs: {totalNFTs}
|
||||||
|
{/* Total Marketplaces: {totalMarketplaces} */}
|
||||||
</h3>
|
</h3>
|
||||||
<h1>User Breakdown</h1>
|
<h1>User Breakdown</h1>
|
||||||
<h3>Any Engagement: {Object.values(usersEngaged).length}</h3>
|
<h3>Any Engagement: {Object.values(usersEngaged).length}</h3>
|
||||||
|
|
Loading…
Reference in New Issue