fix: remove is open state for key gen sync card

This commit is contained in:
RadoslavDimchev 2023-10-15 22:34:40 +03:00
parent 3d08e16662
commit 6f61d151f8
1 changed files with 1 additions and 17 deletions

View File

@ -1,7 +1,6 @@
import { Stack, XStack, YStack } from 'tamagui' import { Stack, XStack, YStack } from 'tamagui'
import { ClearIcon } from '@status-im/icons' import { ClearIcon } from '@status-im/icons'
import { Text } from '@status-im/components' import { Text } from '@status-im/components'
import { useState } from 'react'
import StandardGauge from '../../../../components/Charts/StandardGauge' import StandardGauge from '../../../../components/Charts/StandardGauge'
import BorderBox from '../../../../components/General/BorderBox' import BorderBox from '../../../../components/General/BorderBox'
@ -15,16 +14,6 @@ type KeyGenerationSyncCardProps = {
} }
const KeyGenerationSyncCard = ({ synced, total, title, color }: KeyGenerationSyncCardProps) => { const KeyGenerationSyncCard = ({ synced, total, title, color }: KeyGenerationSyncCardProps) => {
const [isOpen, setIsOpen] = useState(true)
const closeCardHanlder = () => {
setIsOpen(false)
}
if (isOpen === false) {
return null
}
return ( return (
<BorderBox style={{ borderRadius: '10.1px', borderWidth: '0.5px' }}> <BorderBox style={{ borderRadius: '10.1px', borderWidth: '0.5px' }}>
<XStack space={'$2'} alignItems="center"> <XStack space={'$2'} alignItems="center">
@ -59,12 +48,7 @@ const KeyGenerationSyncCard = ({ synced, total, title, color }: KeyGenerationSyn
{formatNumbersWithComa(synced)} / {formatNumbersWithComa(total)} {formatNumbersWithComa(synced)} / {formatNumbersWithComa(total)}
</Text> </Text>
</YStack> </YStack>
<ClearIcon <ClearIcon size={20} color="#A1ABBD" style={{ cursor: 'pointer' }} />
size={20}
color="#A1ABBD"
onClick={closeCardHanlder}
style={{ cursor: 'pointer' }}
/>
</XStack> </XStack>
</BorderBox> </BorderBox>
) )