feat(exit-validator): create entire screen
This commit is contained in:
parent
800e6944a6
commit
5114273af9
|
@ -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
|
|
@ -1,17 +1,20 @@
|
||||||
import DefaultPanel from './Panels/DefaultPanel'
|
import DefaultPanel from './Panels/DefaultPanel'
|
||||||
import DepositPanel from './Panels/DepositPanel'
|
import DepositPanel from './Panels/DepositPanel'
|
||||||
|
import ExitPanel from './Panels/ExitPanel'
|
||||||
import MigratePanel from './Panels/MigratePanel'
|
import MigratePanel from './Panels/MigratePanel'
|
||||||
|
|
||||||
const RightManageSettings = () => {
|
const RightManageSettings = () => {
|
||||||
const isDefault = false
|
const isDefault = false
|
||||||
const isMigrate = false
|
const isMigrate = false
|
||||||
const isDeposit = true
|
const isDeposit = false
|
||||||
|
const isExit = true
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ flexGrow: 1 }}>
|
<div style={{ flexGrow: 1 }}>
|
||||||
{isDefault && <DefaultPanel />}
|
{isDefault && <DefaultPanel />}
|
||||||
{isMigrate && <MigratePanel />}
|
{isMigrate && <MigratePanel />}
|
||||||
{isDeposit && <DepositPanel />}
|
{isDeposit && <DepositPanel />}
|
||||||
|
{isExit && <ExitPanel />}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue