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,10 +6,9 @@ import Icon from '../../../components/General/Icon'
import DashboardCardWrapper from '../DashboardCardWrapper'
const ConsensusUptimeCard = () => {
return (
<DashboardCardWrapper minWidth="50px" maxWidth="1fr" >
<YStack space={'$3'} >
<DashboardCardWrapper minWidth="50px" maxWidth="1fr">
<YStack space={'$3'}>
<YStack>
<Text size={15} weight={'semibold'}>
Consensus Uptime

View File

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

View File

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

View File

@ -6,10 +6,9 @@ import UptimeChart from '../UptimeChart/UptimeChart'
import DashboardCardWrapper from '../DashboardCardWrapper'
const ExecutionUptime = () => {
return (
<DashboardCardWrapper minWidth="100px" maxWidth="1fr" >
<YStack space={'$3'} >
<DashboardCardWrapper minWidth="100px" maxWidth="1fr">
<YStack space={'$3'}>
<YStack>
<Text size={15} weight={'semibold'}>
Execution Uptime