diff --git a/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/components/ContractChecklist.tsx b/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/components/ContractChecklist.tsx index cbd8dbcaf0f..e6eb237a3bd 100644 --- a/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/components/ContractChecklist.tsx +++ b/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/components/ContractChecklist.tsx @@ -2,6 +2,7 @@ import { AdminOnly } from "@3rdweb-sdk/react/components/roles/admin-only"; import { useIsMinter } from "@3rdweb-sdk/react/hooks/useContractRoles"; import { StepsCard } from "components/dashboard/StepsCard"; import { useContractFunctionSelectors } from "contract-ui/hooks/useContractFunctionSelectors"; +import Link from "next/link"; import { useMemo } from "react"; import type { ThirdwebContract } from "thirdweb"; import * as ERC20Ext from "thirdweb/extensions/erc20"; @@ -10,7 +11,6 @@ import * as ERC1155Ext from "thirdweb/extensions/erc1155"; import * as ERC4337Ext from "thirdweb/extensions/erc4337"; import { getAccounts } from "thirdweb/extensions/erc4337"; import { useReadContract } from "thirdweb/react"; -import { Link, Text } from "tw-components"; interface ContractChecklistProps { contract: ThirdwebContract; @@ -177,13 +177,16 @@ function Inner({ steps.push({ title: "First NFT uploaded", children: ( - +

Head to the{" "} - + NFTs tab {" "} to upload your NFT metadata. - +

), // can be either 721 or 1155 completed: (nftsQuery.data?.length || 0) > 0, @@ -194,13 +197,16 @@ function Inner({ steps.push({ title: "Set NFT Metadata", children: ( - +

Head to the{" "} - + NFTs tab {" "} to set your NFT metadata. - +

), completed: !!sharedMetadataQuery?.data, }); @@ -210,14 +216,17 @@ function Inner({ steps.push({ title: "Set Claim Conditions", children: ( - +

Head to the{" "} - + Claim Conditions tab {" "} to set your claim conditions. Users will be able to claim your drop only if a claim phase is active. - +

), completed: (claimConditions.data?.length || 0) > 0 || @@ -229,7 +238,9 @@ function Inner({ steps.push({ title: "First NFT claimed", children: ( - No NFTs have been claimed so far. +

+ No NFTs have been claimed so far. +

), completed: (erc721Claimed.data || 0n) > 0n, }); @@ -239,7 +250,9 @@ function Inner({ steps.push({ title: "First token claimed", children: ( - No tokens have been claimed so far. +

+ No tokens have been claimed so far. +

), completed: (erc20Supply.data || 0n) > 0n, }); @@ -249,13 +262,16 @@ function Inner({ steps.push({ title: "First token minted", children: ( - +

Head to the{" "} - + token tab {" "} to mint your first token. - +

), completed: (erc20Supply.data || 0n) > 0n, }); @@ -265,13 +281,16 @@ function Inner({ steps.push({ title: "First NFT minted", children: ( - +

Head to the{" "} - + NFTs tab {" "} to mint your first token. - +

), // can be either 721 or 1155 completed: (nftsQuery.data?.length || 0) > 0, @@ -282,13 +301,16 @@ function Inner({ steps.push({ title: "First account created", children: ( - +

Head to the{" "} - + Accounts tab {" "} to create your first account. - +

), completed: (accounts.data?.length || 0) > 0, }); @@ -298,13 +320,16 @@ function Inner({ steps.push({ title: "NFTs revealed", children: ( - +

Head to the{" "} - + NFTs tab {" "} to reveal your NFTs. - +

), // This is always false because if there are batches to reveal, the step doesn't show. completed: false, diff --git a/apps/dashboard/src/components/dashboard/StepsCard.tsx b/apps/dashboard/src/components/dashboard/StepsCard.tsx index 85a30ff0177..f3a8c180020 100644 --- a/apps/dashboard/src/components/dashboard/StepsCard.tsx +++ b/apps/dashboard/src/components/dashboard/StepsCard.tsx @@ -57,7 +57,7 @@ export const StepsCard: React.FC = ({

-
+
{steps.map(({ children, ...step }, index) => { const showChildren = !step.completed || (step.completed && step.showCompletedChildren); @@ -74,7 +74,7 @@ export const StepsCard: React.FC = ({
{/* Heading + Desc */} -
+
{typeof step.title === "string" ? (