feat: create PasswordFields component

This commit is contained in:
RadoslavDimchev 2023-08-28 12:22:28 +03:00
parent 8445cc06e1
commit 1bd9d69abf
2 changed files with 23 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import KeyGenerationHeader from './KeyGenerationHeader'
import RecoveryMechanism from './RecoveryMechanism' import RecoveryMechanism from './RecoveryMechanism'
import { Button, InformationBox, Text } from '@status-im/components' import { Button, InformationBox, Text } from '@status-im/components'
import { CloseCircleIcon } from '@status-im/icons' import { CloseCircleIcon } from '@status-im/icons'
import PasswordFields from './PasswordFields'
const KeyGeneration = () => { const KeyGeneration = () => {
return ( return (
@ -12,6 +13,7 @@ const KeyGeneration = () => {
<Text size={27} weight={'semibold'}> <Text size={27} weight={'semibold'}>
4 Validators 4 Validators
</Text> </Text>
<PasswordFields />
<Button>Generate Key files</Button> <Button>Generate Key files</Button>
<InformationBox <InformationBox
message="You should see that you have one keystore per validator. This keystore contains your signing key, encrypted with your password. Warning: Do not store keys on multiple (backup) validator clients at once" message="You should see that you have one keystore per validator. This keystore contains your signing key, encrypted with your password. Warning: Do not store keys on multiple (backup) validator clients at once"

View File

@ -0,0 +1,21 @@
import { Input, XStack, YStack } from 'tamagui'
import BorderBox from '../../../components/General/BorderBox'
import { Text } from '@status-im/components'
const PasswordFields = () => {
return (
<XStack space={'$2'} style={{ justifyContent: 'space-between' }}>
<YStack space={'$2'}>
<Input placeholder="Password" />
<Input placeholder="Confirm Password" />
</YStack>
<BorderBox>
<Text size={15} weight={'semibold'}>
Download Key Files
</Text>
</BorderBox>
</XStack>
)
}
export default PasswordFields