|
|
-
+ |
|
@@ -370,24 +374,6 @@ export default function MyDenoms({
}
}}
/>
-
-
);
}
@@ -408,7 +394,6 @@ function TokenRow({
// Add safety checks for the values
const exponent = denom?.denom_units?.[1]?.exponent ?? 0;
const totalSupply = denom?.totalSupply ?? '0';
- const balance = denom?.balance ?? '0';
// Format numbers safely
const formatAmount = (amount: string) => {
@@ -430,11 +415,7 @@ function TokenRow({
-
- {denom.display.startsWith('factory')
- ? denom.display.split('/').pop()?.toUpperCase()
- : truncateString(denom.display, 12)}
-
+ {formatTokenDisplay(denom.display)}
|
@@ -443,9 +424,7 @@ function TokenRow({
|
{formatAmount(totalSupply)}
-
- {truncateString(denom?.display ?? 'No ticker provided', 10).toUpperCase()}
-
+ {formatTokenDisplay(denom.display)}
|
{
refetchProposals: jest.fn(),
}),
}));
- renderWithChainProvider();
+ renderWithChainProvider();
expect(screen.getByRole('status')).toBeInTheDocument();
});
@@ -94,7 +94,7 @@ describe('ProposalsForPolicy Component', () => {
refetchProposals: jest.fn(),
}),
}));
- renderWithChainProvider();
+ renderWithChainProvider();
expect(screen.getByText('Error loading proposals')).toBeInTheDocument();
});
@@ -107,7 +107,7 @@ describe('ProposalsForPolicy Component', () => {
refetchProposals: jest.fn(),
}),
}));
- renderWithChainProvider();
+ renderWithChainProvider();
expect(screen.getByText('No proposal was found.')).toBeInTheDocument();
});
@@ -120,7 +120,7 @@ describe('ProposalsForPolicy Component', () => {
refetchProposals: jest.fn(),
}),
}));
- renderWithChainProvider();
+ renderWithChainProvider();
expect(screen.getByText('Proposals')).toBeInTheDocument();
const proposals = mockProposals['test_policy_address'];
proposals.forEach(proposal => {
diff --git a/components/groups/components/myGroups.tsx b/components/groups/components/myGroups.tsx
index 56ee0291..1fdd1c51 100644
--- a/components/groups/components/myGroups.tsx
+++ b/components/groups/components/myGroups.tsx
@@ -44,7 +44,7 @@ export function YourGroups({
const [currentPage, setCurrentPage] = useState(1);
const isMobile = useIsMobile();
- const pageSize = isMobile ? 6 : 8;
+ const pageSize = isMobile ? 4 : 8;
const [selectedGroup, setSelectedGroup] = useState<{
policyAddress: string;
@@ -244,7 +244,7 @@ export function YourGroups({
|
|
-
+ |
|
@@ -253,7 +253,7 @@ export function YourGroups({
|
|
-
+ |
|