From 9171c00191db5994b6db95b4ba1565fa0c149576 Mon Sep 17 00:00:00 2001 From: Joseph Chalabi Date: Tue, 26 Nov 2024 09:34:34 -0700 Subject: [PATCH] fix: mint form data display --- components/factory/forms/MintForm.tsx | 39 ++++--------------------- components/factory/modals/MintModal.tsx | 1 - 2 files changed, 6 insertions(+), 34 deletions(-) diff --git a/components/factory/forms/MintForm.tsx b/components/factory/forms/MintForm.tsx index dfc0c4c1..610e291e 100644 --- a/components/factory/forms/MintForm.tsx +++ b/components/factory/forms/MintForm.tsx @@ -14,7 +14,6 @@ import { TailwindModal } from '@/components/react/modal'; export default function MintForm({ isAdmin, - admin, denom, address, refetch, @@ -23,7 +22,6 @@ export default function MintForm({ onMultiMintClick, }: Readonly<{ isAdmin: boolean; - admin: string; denom: ExtendedMetadataSDKType; address: string; refetch: () => void; @@ -104,44 +102,19 @@ export default function MintForm({

+
-

- YOUR BALANCE +

+ CIRCULATING SUPPLY

-

- {Number(shiftDigits(balance, -exponent)).toLocaleString(undefined, { +

+ {Number(shiftDigits(totalSupply, -exponent)).toLocaleString(undefined, { maximumFractionDigits: exponent, - })} + })}{' '}

- {denom?.denom_units[1]?.exponent && ( -
-

- EXPONENT -

-
-

- {denom?.denom_units[1]?.exponent} -

-
-
- )} - {totalSupply !== '0' && ( -
-

- CIRCULATING SUPPLY -

-
-

- {Number(shiftDigits(totalSupply, -exponent)).toLocaleString(undefined, { - maximumFractionDigits: exponent, - })}{' '} -

-
-
- )} {!denom.base.includes('umfx') && (