feat(exit-validator): create entire screen

This commit is contained in:
RadoslavDimchev 2024-03-06 08:55:06 +02:00 committed by Emil Ivanichkov
parent 800e6944a6
commit 5114273af9
2 changed files with 54 additions and 1 deletions

View File

@ -0,0 +1,50 @@
import { Button, Text } from '@status-im/components'
import { XStack, YStack } from 'tamagui'
import PanelWrapper from './PanelWrapper'
const ExitPanel = () => {
const exitQueue = 603
const exitValidatorHandler = () => {}
return (
<PanelWrapper title={'Exit Validator'}>
<YStack alignItems={'flex-start'} marginTop={'6px'}>
<Text size={15} weight="semibold">
Validator Exit Queue
</Text>
<Text size={27} weight="semibold" color="#2A4AF5">
{exitQueue}
</Text>
</YStack>
<YStack
space={'$3'}
style={{
alignItems: 'center',
textAlign: 'center',
marginBottom: '6px',
}}
>
<img
src="/public/images/exit-validator.png"
alt="exit validator"
style={{ width: '300px' }}
/>
<div style={{ width: '73%' }}>
<Text size={15} color="#2A4AF5">
You are about to Exit your validator it is not possible for you to
revert this action! Please make sure you understand the
consequences.
</Text>
</div>
</YStack>
<XStack
style={{ width: '100%', justifyContent: 'end', marginTop: '6px' }}
>
<Button onPress={exitValidatorHandler}>Exit Validator</Button>
</XStack>
</PanelWrapper>
)
}
export default ExitPanel

View File

@ -1,17 +1,20 @@
import DefaultPanel from './Panels/DefaultPanel'
import DepositPanel from './Panels/DepositPanel'
import ExitPanel from './Panels/ExitPanel'
import MigratePanel from './Panels/MigratePanel'
const RightManageSettings = () => {
const isDefault = false
const isMigrate = false
const isDeposit = true
const isDeposit = false
const isExit = true
return (
<div style={{ flexGrow: 1 }}>
{isDefault && <DefaultPanel />}
{isMigrate && <MigratePanel />}
{isDeposit && <DepositPanel />}
{isExit && <ExitPanel />}
</div>
)
}