From 6f61d151f83e214f555c948b185bd3ac86b8702a Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Sun, 15 Oct 2023 22:34:40 +0300 Subject: [PATCH] fix: remove is open state for key gen sync card --- .../KeyGenerationSyncCard.tsx | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationSyncCard.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationSyncCard.tsx index a9f8ba79..ecdc91aa 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationSyncCard.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationSyncCard.tsx @@ -1,7 +1,6 @@ import { Stack, XStack, YStack } from 'tamagui' import { ClearIcon } from '@status-im/icons' import { Text } from '@status-im/components' -import { useState } from 'react' import StandardGauge from '../../../../components/Charts/StandardGauge' import BorderBox from '../../../../components/General/BorderBox' @@ -15,16 +14,6 @@ type KeyGenerationSyncCardProps = { } const KeyGenerationSyncCard = ({ synced, total, title, color }: KeyGenerationSyncCardProps) => { - const [isOpen, setIsOpen] = useState(true) - - const closeCardHanlder = () => { - setIsOpen(false) - } - - if (isOpen === false) { - return null - } - return ( @@ -59,12 +48,7 @@ const KeyGenerationSyncCard = ({ synced, total, title, color }: KeyGenerationSyn {formatNumbersWithComa(synced)} / {formatNumbersWithComa(total)} - + )