Skip to content

Commit

Permalink
Update CollectNft.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kilavvy authored Feb 24, 2025
1 parent f9008dc commit 8814d6c
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import useNftDetails from "../../hooks/useNftDetails"
import CollectNftButton from "./components/CollectNftButton"
import NftFeesTable from "./components/NftFeesTable"

const availibiltyTagStyleProps = {
const availabilityTagStyleProps = {
bgColor: "transparent",
fontSize: "sm",
fontWeight: "medium",
Expand Down Expand Up @@ -109,7 +109,7 @@ const CollectNft = () => {
<CapacityTag
capacity={rolePlatform.capacity}
claimedCount={rolePlatform.claimedCount}
{...availibiltyTagStyleProps}
{...availabilityTagStyleProps}
/>
<CircleDivider />
</>
Expand All @@ -120,7 +120,7 @@ const CollectNft = () => {
<CapacityTag
capacity={Number(maxSupply)}
claimedCount={Number(totalSupply)}
{...availibiltyTagStyleProps}
{...availabilityTagStyleProps}
/>
<CircleDivider />
</>
Expand All @@ -130,7 +130,7 @@ const CollectNft = () => {
<>
<StartTimeTag
startTime={rolePlatform?.startTime}
{...availibiltyTagStyleProps}
{...availabilityTagStyleProps}
/>
<CircleDivider />
</>
Expand All @@ -140,15 +140,15 @@ const CollectNft = () => {
<>
<EndTimeTag
endTime={rolePlatform?.endTime}
{...availibiltyTagStyleProps}
{...availabilityTagStyleProps}
/>
<CircleDivider />
</>
)}

{typeof rolePlatform?.capacity !== "number" && (
<>
<Tag {...availibiltyTagStyleProps} colorScheme="gray">
<Tag {...availabilityTagStyleProps} colorScheme="gray">
{`${new Intl.NumberFormat("en", {
notation: "standard",
}).format(totalSupply ?? 0)} collected`}
Expand All @@ -158,7 +158,7 @@ const CollectNft = () => {
)}

{typeof totalCollectorsToday === "bigint" && (
<Tag {...availibiltyTagStyleProps} colorScheme="gray">
<Tag {...availabilityTagStyleProps} colorScheme="gray">
{`${new Intl.NumberFormat("en", {
notation: "standard",
}).format(totalCollectorsToday)} collected today`}
Expand Down

0 comments on commit 8814d6c

Please sign in to comment.