From e22418cb6f859f404d02c197d79a3e147ab1b412 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Fri, 15 Mar 2024 22:04:12 +0200 Subject: [PATCH] feat(devices-health-check): copy device component --- .../DevicesHealthCheck/DevicesHealthCheck.tsx | 86 ++++++++++++++++++- 1 file changed, 85 insertions(+), 1 deletion(-) diff --git a/src/pages/DevicesHealthCheck/DevicesHealthCheck.tsx b/src/pages/DevicesHealthCheck/DevicesHealthCheck.tsx index 5c2c237a..7983d215 100644 --- a/src/pages/DevicesHealthCheck/DevicesHealthCheck.tsx +++ b/src/pages/DevicesHealthCheck/DevicesHealthCheck.tsx @@ -1,5 +1,89 @@ +import { useSelector } from 'react-redux' +import { Stack, XStack, YStack } from 'tamagui' +import { CloseCircleIcon } from '@status-im/icons' +import { Button, InformationBox } from '@status-im/components' +import type { Property } from 'csstype' + +import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow' +import NimbusLogo from '../../components/Logos/NimbusLogo' +import Titles from '../../components/General/Titles' +import DeviceStorageHealth from '../../components/Charts/DeviceStorageHealth' +import DeviceCPULoad from '../../components/Charts/DeviceCPULoad' +import HealthInfoSection from '../../components/General/HealthInfoSection' +import DeviceMemory from '../../components/Charts/DeviceMemoryHealth' +import DeviceNetworkHealth from '../../components/Charts/DeviceNetworkHealth' +import { RootState } from '../../redux/store' +import { useWindowSize } from '../../hooks/useWindowSize' + const DevicesHealthCheck = () => { - return
+ const deviceHealthState = useSelector( + (state: RootState) => state.deviceHealth, + ) + const windowSize = useWindowSize() + const breakpoint = 768 + + const responsiveStyle = { + flexWrap: (windowSize.width <= breakpoint + ? 'wrap' + : 'nowrap') as Property.FlexWrap, + flexDirection: (windowSize.width <= breakpoint + ? 'column' + : 'row') as Property.FlexDirection, + alignItems: 'flex-start', + width: windowSize.width <= breakpoint ? '200%' : '100%', + } + + return ( + + + + + + + + + + + + + + } + message="The information provided in the Nodes Health Check is meant to utilized as a guide to guage the readiness of your device, however please do your own due diligence prior to commiting any funds. Read our Health Check Disclosure for more information." + /> + + + + + + ) } export default DevicesHealthCheck