diff --git a/src/components/General/AddCards/AddCardsContainer.tsx b/src/components/General/AddCards/AddCardsContainer.tsx index fb5bf1c9..02ad5ac3 100644 --- a/src/components/General/AddCards/AddCardsContainer.tsx +++ b/src/components/General/AddCards/AddCardsContainer.tsx @@ -5,7 +5,7 @@ import DashboardCardWrapper from '../../../pages/Dashboard/DashboardCardWrapper' const AddCardsContainer = () => { return ( - + diff --git a/src/pages/Dashboard/BalanceChartCard/BalanceChartCard.tsx b/src/pages/Dashboard/BalanceChartCard/BalanceChartCard.tsx index 4aef867e..2f44cda6 100644 --- a/src/pages/Dashboard/BalanceChartCard/BalanceChartCard.tsx +++ b/src/pages/Dashboard/BalanceChartCard/BalanceChartCard.tsx @@ -37,8 +37,8 @@ const BalanceChartCard = () => { } return ( - - + + diff --git a/src/pages/Dashboard/BasicInfoCards/BasicInfoCard.tsx b/src/pages/Dashboard/BasicInfoCards/BasicInfoCard.tsx index 8d1f789e..3fcbf243 100644 --- a/src/pages/Dashboard/BasicInfoCards/BasicInfoCard.tsx +++ b/src/pages/Dashboard/BasicInfoCards/BasicInfoCard.tsx @@ -10,7 +10,7 @@ type BasicInfoCardProps = { const BasicInfoCard = ({ title, value }: BasicInfoCardProps) => { return ( - + { const message = currentLoad < 80 ? 'Good' : 'Poor' return ( - + { style={{ padding: '8px 16px', position: 'relative', + flexGrow: '1', }} > + + + CPU + + + {currentLoad} GB + + - - - CPU - - - {currentLoad} GB - - - - + + { - + - + { +const DashboardCardWrapper = ({ + children, + padding = '12px 16px', + width, +}: DashboardCardWrapperProps) => { return ( {children} diff --git a/src/pages/Dashboard/MemoryCard/MemoryCard.tsx b/src/pages/Dashboard/MemoryCard/MemoryCard.tsx index c6a6cba3..75d60bae 100644 --- a/src/pages/Dashboard/MemoryCard/MemoryCard.tsx +++ b/src/pages/Dashboard/MemoryCard/MemoryCard.tsx @@ -1,4 +1,4 @@ -import { Paragraph, Separator, Stack, XStack, YStack } from 'tamagui' +import { Separator, Stack, XStack, YStack } from 'tamagui' import { Text } from '@status-im/components' import { CheckCircleIcon, IncorrectIcon } from '@status-im/icons' @@ -41,11 +41,11 @@ const MemoryCard = ({ currentMemory, maxMemory }: MemoryCardProps) => { const message = currentLoad < maxMemory ? 'Good' : 'Poor' return ( - + { style={{ padding: '8px 16px', position: 'relative', + flexGrow: '1', }} > - - + + Memory - - + + {currentLoad} GB - + - + - + : } > diff --git a/src/pages/Dashboard/NetworkCard/NetworkCard.tsx b/src/pages/Dashboard/NetworkCard/NetworkCard.tsx index c38800bb..3622adcf 100644 --- a/src/pages/Dashboard/NetworkCard/NetworkCard.tsx +++ b/src/pages/Dashboard/NetworkCard/NetworkCard.tsx @@ -1,4 +1,4 @@ -import { Paragraph, Separator, Stack, XStack, YStack } from 'tamagui' +import { Separator, Stack, XStack, YStack } from 'tamagui' import { Text } from '@status-im/components' import { CheckCircleIcon, IncorrectIcon } from '@status-im/icons' @@ -48,11 +48,11 @@ const NetworkCard = ({ uploadRate, downloadRate }: NetworkCardProps) => { const message = currentLoad > 60 ? 'Good' : 'Poor' return ( - + { style={{ padding: '8px 16px', position: 'relative', + flexGrow: '1', }} > - + - + Network - + @@ -84,13 +85,13 @@ const NetworkCard = ({ uploadRate, downloadRate }: NetworkCardProps) => { - + {currentLoad} GB - + - - + + : } > diff --git a/src/pages/Dashboard/StorageCard/StorageCard.tsx b/src/pages/Dashboard/StorageCard/StorageCard.tsx index 9c380771..905cc306 100644 --- a/src/pages/Dashboard/StorageCard/StorageCard.tsx +++ b/src/pages/Dashboard/StorageCard/StorageCard.tsx @@ -1,5 +1,5 @@ -import { Paragraph, Separator, Stack, XStack, YStack } from 'tamagui' -import { Shadow, Text } from '@status-im/components' +import { Separator, Stack, XStack, YStack } from 'tamagui' +import { Text } from '@status-im/components' import { IncorrectIcon } from '@status-im/icons' import StandardGauge from '../../../components/Charts/StandardGauge' @@ -35,11 +35,11 @@ const StorageCard = ({ storage, maxStorage }: StorageCardProps) => { } return ( - + { style={{ padding: '8px 16px', position: 'relative', + flexGrow: '1', }} > + + + Storage + + + {storage} GB + + - - - Storage - - - {storage} GB - - - - + + { return ( - +