clear width from dashboard components
This commit is contained in:
parent
e79f89c1a8
commit
141a3a96f9
|
@ -17,51 +17,51 @@ import MemoryCard from './MemoryCard/MemoryCard'
|
||||||
|
|
||||||
const Dashboard = () => {
|
const Dashboard = () => {
|
||||||
return (
|
return (
|
||||||
<XStack justifyContent={'space-between'} >
|
<XStack justifyContent={'space-between'} >
|
||||||
<LeftSidebar />
|
<LeftSidebar />
|
||||||
|
|
||||||
<YStack
|
<YStack
|
||||||
space={'$4'}
|
space={'$4'}
|
||||||
alignItems="start"
|
alignItems="start"
|
||||||
px="24px"
|
px="24px"
|
||||||
style={{ flexGrow: '1', marginTop: '16px', overflowY: 'scroll' }}
|
style={{ flexGrow: '1', marginTop: '16px' }}
|
||||||
>
|
>
|
||||||
<TitleLogo />
|
<TitleLogo />
|
||||||
<XStack space={'$4'} justifyContent={'space-between'} width={'100%'}>
|
<XStack space={'$4'} justifyContent={'space-between'} >
|
||||||
<XStack space={'$4'} width={'40%'}>
|
<XStack space={'$4'} >
|
||||||
<SyncStatusCard />
|
<SyncStatusCard />
|
||||||
<AddCardsContainer />
|
<AddCardsContainer />
|
||||||
|
</XStack>
|
||||||
|
<BalanceChartCard />
|
||||||
|
</XStack>
|
||||||
|
<BasicInfoCards />
|
||||||
|
|
||||||
|
<XStack space="$3" >
|
||||||
|
<YStack space={'$4'} >
|
||||||
|
<XStack justifyContent="space-between">
|
||||||
|
<ConsensusUptimeCard />
|
||||||
|
<ExecutionUptime />
|
||||||
</XStack>
|
</XStack>
|
||||||
<BalanceChartCard />
|
<DeviceUptime />
|
||||||
</XStack>
|
</YStack>
|
||||||
<BasicInfoCards />
|
<YStack space={'$4'} >
|
||||||
|
<XStack space="$4" >
|
||||||
|
<StorageCard maxStorage={100} storage={82} />
|
||||||
|
<CPUCard load={[12, 31, 3, 2, 24, 98]} />
|
||||||
|
</XStack>
|
||||||
|
<XStack space="$4" >
|
||||||
|
<MemoryCard currentMemory={[21, 33, 3, 42, 35]} maxMemory={50} />
|
||||||
|
<NetworkCard
|
||||||
|
downloadRate={[12, 31, 22, 12, 23, 23, 90]}
|
||||||
|
uploadRate={[31, 22, 32, 132, 32, 45, 65]}
|
||||||
|
/>
|
||||||
|
</XStack>
|
||||||
|
</YStack>
|
||||||
|
</XStack>
|
||||||
|
</YStack>
|
||||||
|
|
||||||
<XStack space="$3" width={'100%'}>
|
<RightSidebar />
|
||||||
<YStack space={'$4'} width={'50%'}>
|
</XStack>
|
||||||
<XStack justifyContent="space-between">
|
|
||||||
<ConsensusUptimeCard />
|
|
||||||
<ExecutionUptime />
|
|
||||||
</XStack>
|
|
||||||
<DeviceUptime />
|
|
||||||
</YStack>
|
|
||||||
<YStack space={'$4'} width={'50%'}>
|
|
||||||
<XStack space="$4" width={'100%'}>
|
|
||||||
<StorageCard maxStorage={100} storage={82} />
|
|
||||||
<CPUCard load={[12, 31, 3, 2, 24, 98]} />
|
|
||||||
</XStack>
|
|
||||||
<XStack space="$4" width={'100%'}>
|
|
||||||
<MemoryCard currentMemory={[21, 33, 3, 42, 35]} maxMemory={50} />
|
|
||||||
<NetworkCard
|
|
||||||
downloadRate={[12, 31, 22, 12, 23, 23, 90]}
|
|
||||||
uploadRate={[31, 22, 32, 132, 32, 45, 65]}
|
|
||||||
/>
|
|
||||||
</XStack>
|
|
||||||
</YStack>
|
|
||||||
</XStack>
|
|
||||||
</YStack>
|
|
||||||
|
|
||||||
<RightSidebar />
|
|
||||||
</XStack>
|
|
||||||
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue