diff --git a/public/icons/pepper.svg b/public/icons/pepper.svg new file mode 100644 index 00000000..877750fd --- /dev/null +++ b/public/icons/pepper.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationSyncCard.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationSyncCard.tsx index a9f8ba79..0fade5dd 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 { InfoBadgeIcon } 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)} - + ) diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeystoreFiles.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeystoreFiles.tsx index 1fb44a9d..0b81ed5e 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/KeystoreFiles.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeystoreFiles.tsx @@ -50,6 +50,16 @@ const KeystoreFiles = () => { return '*'.repeat(passwordLength) } + const clearEncryptedPasswordHandler = () => { + setEncryptedPassword('') + setDisplayEncryptedPassword('') + } + + const clearConfirmEncryptedPasswordHandler = () => { + setConfirmEncryptedPassword('') + setDisplayConfirmEncryptedPassword('') + } + return ( @@ -65,7 +75,7 @@ const KeystoreFiles = () => { size={16} color="#A1ABBD" style={{ cursor: 'pointer' }} - onClick={() => setEncryptedPassword('')} + onClick={clearEncryptedPasswordHandler} /> } error={encryptedPasswordError} @@ -84,7 +94,7 @@ const KeystoreFiles = () => { size={16} color="#A1ABBD" style={{ cursor: 'pointer' }} - onClick={() => setConfirmEncryptedPassword('')} + onClick={clearConfirmEncryptedPasswordHandler} /> } error={confirmEncryptedPasswordError} diff --git a/src/pages/ValidatorOnboarding/ValidatorSetup/ConsensusClient/ConsensusGaugeCard.tsx b/src/pages/ValidatorOnboarding/ValidatorSetup/ConsensusClient/ConsensusGaugeCard.tsx index cbec70b6..b0e17f47 100644 --- a/src/pages/ValidatorOnboarding/ValidatorSetup/ConsensusClient/ConsensusGaugeCard.tsx +++ b/src/pages/ValidatorOnboarding/ValidatorSetup/ConsensusClient/ConsensusGaugeCard.tsx @@ -1,5 +1,5 @@ import { Stack, XStack, YStack } from 'tamagui' -import { ClearIcon } from '@status-im/icons' +import { InfoBadgeIcon } from '@status-im/icons' import { Text } from '@status-im/components' import StandardGauge from '../../../../components/Charts/StandardGauge' @@ -48,7 +48,7 @@ const ConsensusGaugeCard = ({ synced, total, title, color }: ConsensusGaugeCardP {formatNumbersWithComa(synced)} / {formatNumbersWithComa(total)} - + ) diff --git a/src/pages/ValidatorOnboarding/ValidatorSetup/ConsensusClient/PairedDeviceCard.tsx b/src/pages/ValidatorOnboarding/ValidatorSetup/ConsensusClient/PairedDeviceCard.tsx index 2840c745..a0bd57cf 100644 --- a/src/pages/ValidatorOnboarding/ValidatorSetup/ConsensusClient/PairedDeviceCard.tsx +++ b/src/pages/ValidatorOnboarding/ValidatorSetup/ConsensusClient/PairedDeviceCard.tsx @@ -1,5 +1,5 @@ import { XStack, YStack } from 'tamagui' -import { InfoIcon } from '@status-im/icons' +import { InfoBadgeIcon } from '@status-im/icons' import { Avatar, Text } from '@status-im/components' const PairedDeviceCard = () => { @@ -14,7 +14,12 @@ const PairedDeviceCard = () => { alignItems={'center'} > - + } + /> Paired Device @@ -24,7 +29,7 @@ const PairedDeviceCard = () => { - + ) }