mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-24 00:58:19 +00:00
feat(default-panel): create and use separate component
This commit is contained in:
parent
eedad90e0f
commit
7e5d73e4f9
@ -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
|
@ -1,29 +1,11 @@
|
||||
import { Text } from '@status-im/components'
|
||||
import { YStack } from 'tamagui'
|
||||
|
||||
import Icon from '../../../../components/General/Icon'
|
||||
import DefaultPanel from './DefaultPanel'
|
||||
|
||||
const RightManageSettings = () => {
|
||||
const isDefault = false
|
||||
const isMigrate = true
|
||||
const isDeposit = false
|
||||
// const isMigrate = true
|
||||
// const isDeposit = false
|
||||
|
||||
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>
|
||||
)
|
||||
return <>{isDefault && <DefaultPanel />}</>
|
||||
}
|
||||
|
||||
export default RightManageSettings
|
||||
|
Loading…
x
Reference in New Issue
Block a user