fix device Uptime

This commit is contained in:
Hristo Nedelkov 2023-10-18 17:30:50 +03:00
parent 662863a09a
commit 3d9d01510f
2 changed files with 5 additions and 7 deletions

View File

@ -31,6 +31,7 @@ const DashboardContent = () => (
<div style={{ <div style={{
display: 'grid', display: 'grid',
gridTemplateColumns: '1fr 1fr', gridTemplateColumns: '1fr 1fr',
gap: '16px' // You can adjust this value as per your needs
}}> }}>
<YStack space="$4"> <YStack space="$4">
<SyncStatusCard /> <SyncStatusCard />

View File

@ -6,6 +6,7 @@ import { useState } from 'react'
import UptimeChart from '../UptimeChart/UptimeChart' import UptimeChart from '../UptimeChart/UptimeChart'
import Icon from '../../../components/General/Icon' import Icon from '../../../components/General/Icon'
import { getMonthIndicesFromRange } from '../../../utilities' import { getMonthIndicesFromRange } from '../../../utilities'
import DashboardCardWrapper from '../DashboardCardWrapper'
const DeviceUptime = () => { const DeviceUptime = () => {
const [isCalendarVisible, setIsCalendarVisible] = useState(false) const [isCalendarVisible, setIsCalendarVisible] = useState(false)
@ -27,13 +28,9 @@ const DeviceUptime = () => {
} }
return ( return (
<Shadow <DashboardCardWrapper
variant="$2"
style={{
borderRadius: '16px',
}}
> >
<YStack space={'$3'} width={'100%'} minHeight={'156px'} padding={'$3'}> <YStack space={'$3'} >
<XStack justifyContent={'space-between'}> <XStack justifyContent={'space-between'}>
<YStack> <YStack>
<Text size={15} weight={'semibold'}> <Text size={15} weight={'semibold'}>
@ -104,7 +101,7 @@ const DeviceUptime = () => {
</Stack> </Stack>
</XStack> </XStack>
</YStack> </YStack>
</Shadow> </DashboardCardWrapper>
) )
} }