feat(migrate-panel): warning and keystore card 100% width
This commit is contained in:
parent
a72208a7e9
commit
421e04efd9
|
@ -1,6 +1,6 @@
|
||||||
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 { Stack, XStack, YStack } from 'tamagui'
|
import { XStack, YStack } from 'tamagui'
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
|
|
||||||
import KeystoreBackupsCard from '../../../../ValidatorOnboarding/KeyGeneration/KeystoreFiles/KeystoreBackupsCard'
|
import KeystoreBackupsCard from '../../../../ValidatorOnboarding/KeyGeneration/KeystoreFiles/KeystoreBackupsCard'
|
||||||
|
@ -34,14 +34,16 @@ const MigratePanel = () => {
|
||||||
</Text>
|
</Text>
|
||||||
</YStack>
|
</YStack>
|
||||||
<KeystoreBackupsCard />
|
<KeystoreBackupsCard />
|
||||||
{isVisibleWarning && (
|
<div style={{ width: '100%' }}>
|
||||||
<InformationBox
|
{isVisibleWarning && (
|
||||||
message="Please make sure to enforce the file on another node to continue validating with your Validator."
|
<InformationBox
|
||||||
variant="error"
|
message="Please make sure to enforce the file on another node to continue validating with your Validator."
|
||||||
icon={<CloseCircleIcon size={20} />}
|
variant="error"
|
||||||
onClosePress={() => setIsVisibleWarning(false)}
|
icon={<CloseCircleIcon size={20} />}
|
||||||
/>
|
onClosePress={() => setIsVisibleWarning(false)}
|
||||||
)}
|
/>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
<XStack style={{ width: '100%', justifyContent: 'end' }}>
|
<XStack style={{ width: '100%', justifyContent: 'end' }}>
|
||||||
<Button onPress={migrateValidatorHandler}>Migrate Validator</Button>
|
<Button onPress={migrateValidatorHandler}>Migrate Validator</Button>
|
||||||
</XStack>
|
</XStack>
|
||||||
|
|
|
@ -18,6 +18,7 @@ const KeystoreBackupsCard = () => {
|
||||||
borderRadius: '16px',
|
borderRadius: '16px',
|
||||||
padding: '9px 16px',
|
padding: '9px 16px',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
|
width: '100%',
|
||||||
}}
|
}}
|
||||||
onPress={downloadKeyFilesHandler}
|
onPress={downloadKeyFilesHandler}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue