mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-24 09:08:14 +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 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user