feat(default-panel): create and use separate component

This commit is contained in:
RadoslavDimchev 2024-02-19 21:43:23 +02:00 committed by Emil Ivanichkov
parent eedad90e0f
commit 7e5d73e4f9
2 changed files with 29 additions and 22 deletions

View File

@ -0,0 +1,25 @@
import { Text } from '@status-im/components'
import { YStack } from 'tamagui'
import Icon from '../../../../components/General/Icon'
const DefaultPanel = () => {
return (
<YStack
space={'$2'}
width={'50%'}
justifyContent="center"
alignItems="center"
>
<Icon src="/icons/cat-in-box.png" height={100} width={100} />
<Text size={15} weight={'semibold'}>
Manage your Validator
</Text>
<Text size={15}>
This panel will give you additional settings to manage your vaidator
</Text>
</YStack>
)
}
export default DefaultPanel

View File

@ -1,29 +1,11 @@
import { Text } from '@status-im/components' import DefaultPanel from './DefaultPanel'
import { YStack } from 'tamagui'
import Icon from '../../../../components/General/Icon'
const RightManageSettings = () => { const RightManageSettings = () => {
const isDefault = false const isDefault = false
const isMigrate = true // const isMigrate = true
const isDeposit = false // const isDeposit = false
return ( return <>{isDefault && <DefaultPanel />}</>
<YStack
space={'$2'}
width={'50%'}
justifyContent="center"
alignItems="center"
>
<Icon src="/icons/cat-in-box.png" height={100} width={100} />
<Text size={15} weight={'semibold'}>
Manage your Validator
</Text>
<Text size={15}>
This panel will give you additional settings to manage your vaidator
</Text>
</YStack>
)
} }
export default RightManageSettings export default RightManageSettings