clear code

This commit is contained in:
Hristo Nedelkov 2023-11-03 10:43:06 +02:00
parent e970ca6a43
commit 1135b90171
4 changed files with 14 additions and 15 deletions

View File

@ -6,7 +6,6 @@ import Icon from '../../../components/General/Icon'
import DashboardCardWrapper from '../DashboardCardWrapper' import DashboardCardWrapper from '../DashboardCardWrapper'
const ConsensusUptimeCard = () => { const ConsensusUptimeCard = () => {
return ( return (
<DashboardCardWrapper minWidth="50px" maxWidth="1fr"> <DashboardCardWrapper minWidth="50px" maxWidth="1fr">
<YStack space={'$3'}> <YStack space={'$3'}>

View File

@ -82,15 +82,16 @@ const DashboardContent = () => {
}} }}
> >
<YStack> <YStack>
<Stack style={{ <Stack
style={{
display: 'grid', display: 'grid',
gridTemplateColumns: '1fr 1fr', gridTemplateColumns: '1fr 1fr',
}}> gap: '8px',
}}
>
<ConsensusUptimeCard /> <ConsensusUptimeCard />
<ExecutionUptime /> <ExecutionUptime />
</Stack> </Stack>xx
<DeviceUptime /> <DeviceUptime />
</YStack> </YStack>
<YStack space={'$4'}> <YStack space={'$4'}>

View File

@ -28,7 +28,7 @@ const DeviceUptime = () => {
} }
return ( return (
<DashboardCardWrapper minWidth='100px'> <DashboardCardWrapper minWidth="100px">
<YStack space={'$3'}> <YStack space={'$3'}>
<XStack justifyContent={'space-between'}> <XStack justifyContent={'space-between'}>
<YStack> <YStack>

View File

@ -6,7 +6,6 @@ import UptimeChart from '../UptimeChart/UptimeChart'
import DashboardCardWrapper from '../DashboardCardWrapper' import DashboardCardWrapper from '../DashboardCardWrapper'
const ExecutionUptime = () => { const ExecutionUptime = () => {
return ( return (
<DashboardCardWrapper minWidth="100px" maxWidth="1fr"> <DashboardCardWrapper minWidth="100px" maxWidth="1fr">
<YStack space={'$3'}> <YStack space={'$3'}>