mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-20 15:18:33 +00:00
feat(migrate-panel): add state and handler for warning
This commit is contained in:
parent
0e371ac3f4
commit
b69f9902ae
@ -1,11 +1,14 @@
|
|||||||
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 { YStack } from 'tamagui'
|
import { YStack } from 'tamagui'
|
||||||
|
import { useState } from 'react'
|
||||||
|
|
||||||
import KeystoreBackupsCard from '../../../../ValidatorOnboarding/KeyGeneration/KeystoreFiles/KeystoreBackupsCard'
|
import KeystoreBackupsCard from '../../../../ValidatorOnboarding/KeyGeneration/KeystoreFiles/KeystoreBackupsCard'
|
||||||
import PanelWrapper from './PanelWrapper'
|
import PanelWrapper from './PanelWrapper'
|
||||||
|
|
||||||
const MigratePanel = () => {
|
const MigratePanel = () => {
|
||||||
|
const [isVisibleWarning, setIsVisibleWarning] = useState(true)
|
||||||
|
|
||||||
const migrateValidatorHandler = () => {}
|
const migrateValidatorHandler = () => {}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -31,11 +34,14 @@ const MigratePanel = () => {
|
|||||||
</Text>
|
</Text>
|
||||||
</YStack>
|
</YStack>
|
||||||
<KeystoreBackupsCard />
|
<KeystoreBackupsCard />
|
||||||
|
{isVisibleWarning && (
|
||||||
<InformationBox
|
<InformationBox
|
||||||
message="Please make sure to enforce the file on another node to continue validating with your Validator."
|
message="Please make sure to enforce the file on another node to continue validating with your Validator."
|
||||||
variant="error"
|
variant="error"
|
||||||
icon={<CloseCircleIcon size={20} />}
|
icon={<CloseCircleIcon size={20} />}
|
||||||
|
onClosePress={() => setIsVisibleWarning(false)}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
<Button onPress={migrateValidatorHandler}>Migrate Validator</Button>
|
<Button onPress={migrateValidatorHandler}>Migrate Validator</Button>
|
||||||
</PanelWrapper>
|
</PanelWrapper>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user