diff --git a/components/bank/components/__tests__/tokenList.test.tsx b/components/bank/components/__tests__/tokenList.test.tsx index 79096175..9e33b14b 100644 --- a/components/bank/components/__tests__/tokenList.test.tsx +++ b/components/bank/components/__tests__/tokenList.test.tsx @@ -83,10 +83,9 @@ describe('TokenList', () => { await waitFor(() => { expect(screen.getByLabelText('Close modal')).toBeInTheDocument(); - expect(screen.getByText('NAME')).toBeInTheDocument(); - expect(screen.getByText('SYMBOL')).toBeInTheDocument(); - expect(screen.getByText('DESCRIPTION')).toBeInTheDocument(); - expect(screen.getByText('EXPONENT')).toBeInTheDocument(); + expect(screen.getByText('Name')).toBeInTheDocument(); + expect(screen.getByText('Ticker')).toBeInTheDocument(); + expect(screen.getByText('Description')).toBeInTheDocument(); }); }); diff --git a/components/factory/modals/denomInfo.tsx b/components/factory/modals/denomInfo.tsx index 16bccc91..3632cd4e 100644 --- a/components/factory/modals/denomInfo.tsx +++ b/components/factory/modals/denomInfo.tsx @@ -2,7 +2,6 @@ import React from 'react'; import { TruncatedAddressWithCopy } from '@/components/react/addressCopy'; import { FaExternalLinkAlt } from 'react-icons/fa'; import { MetadataSDKType } from '@liftedinit/manifestjs/dist/codegen/cosmos/bank/v1beta1/bank'; -import { useRouter } from 'next/router'; export const DenomInfoModal: React.FC<{ denom: MetadataSDKType | null; @@ -10,6 +9,10 @@ export const DenomInfoModal: React.FC<{ isOpen?: boolean; onClose?: () => void; }> = ({ denom, modalId, isOpen, onClose }) => { + let nameIsAddress = false; + if (denom?.name.startsWith('factory/manifest1')) { + nameIsAddress = true; + } return (

Denom Details

-
- - - {denom?.description && ( - - )} - {denom?.denom_units[1]?.exponent && ( - - )} -
-
- {denom?.denom_units?.map( - ( - unit: { - denom: string; - aliases?: string[]; - exponent?: number; - }, - index: number - ) => ( -
- - -
- ) - )} -
-
-

- Additional Information -

-
+ + -
@@ -85,18 +55,20 @@ function InfoItem({ label, value, isAddress = false, + className = '', }: { label: string; value: string; isAddress?: boolean; + className?: string; }) { return ( -
+

{label}

-
+
{isAddress ? ( ) : ( -

+

{value}

)}