balance page ui

This commit is contained in:
Gala
2022-07-19 11:55:35 +02:00
parent e877dfe224
commit 78ace473c7
3 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -12,16 +12,17 @@ const CardContentNoPadding = styled(CardContent)(() => ({
export const NymCard: React.FC<{
title: string | React.ReactElement;
titleSx?: object;
subheader?: string;
Action?: React.ReactNode;
Icon?: React.ReactNode;
noPadding?: boolean;
borderless?: boolean;
dataTestid?: string;
}> = ({ title, subheader, Action, Icon, noPadding, borderless, children, dataTestid }) => (
}> = ({ title, titleSx, subheader, Action, Icon, noPadding, borderless, children, dataTestid }) => (
<Card variant="outlined" sx={{ overflow: 'auto', ...(borderless && { border: 'none', dropShadow: 'none' }) }}>
<CardHeader
sx={{ p: 3, color: (theme: Theme) => theme.palette.text.primary }}
sx={{ p: 3, color: (theme: Theme) => theme.palette.text.primary, ...titleSx }}
title={<Title title={title} Icon={Icon} />}
subheader={subheader}
data-testid={dataTestid || title}
+2 -2
View File
@@ -40,12 +40,12 @@ export const ApplicationLayout: React.FC = ({ children }) => {
<Nav />
</Box>
{appVersion && (
<Box color="#888" mt={8}>
<Box color="#888" mt={8} fontSize={14}>
Version {appVersion}
</Box>
)}
</Box>
<Container maxWidth="xl">
<Container maxWidth="xl" sx={{ px: { sm: 5 } }}>
<AppBar />
<Box overflow="auto" sx={{ height: () => `calc(100% - ${theme.spacing(10)})` }}>
{children}
+1
View File
@@ -14,6 +14,7 @@ export const BalanceCard = () => {
return (
<NymCard
title="Balance"
titleSx={{ fontSize: 20 }}
data-testid="check-balance"
borderless
Action={<ClientAddress withCopy showEntireAddress />}