feat(default-panel): hide for smaller screens
This commit is contained in:
parent
4bf75ded46
commit
afb43dee76
|
@ -2,24 +2,32 @@ import { Text } from '@status-im/components'
|
||||||
import { YStack } from 'tamagui'
|
import { YStack } from 'tamagui'
|
||||||
|
|
||||||
import Icon from '../../../components/General/Icon'
|
import Icon from '../../../components/General/Icon'
|
||||||
|
import { useWindowSize } from '../../../hooks/useWindowSize'
|
||||||
|
|
||||||
const DefaultPanel = () => {
|
const DefaultPanel = () => {
|
||||||
|
const { width } = useWindowSize()
|
||||||
|
const isModalWidth = width < 1160
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<YStack
|
<>
|
||||||
space={'$2'}
|
{isModalWidth === false && (
|
||||||
width={'100%'}
|
<YStack
|
||||||
height={'100vh'}
|
space={'$2'}
|
||||||
justifyContent="center"
|
width={'100%'}
|
||||||
alignItems="center"
|
height={'100vh'}
|
||||||
>
|
justifyContent="center"
|
||||||
<Icon src="/icons/cat-in-box.png" height={100} width={100} />
|
alignItems="center"
|
||||||
<Text size={15} weight={'semibold'}>
|
>
|
||||||
Manage your Validator
|
<Icon src="/icons/cat-in-box.png" height={100} width={100} />
|
||||||
</Text>
|
<Text size={15} weight={'semibold'}>
|
||||||
<Text size={15}>
|
Manage your Validator
|
||||||
This panel will give you additional settings to manage your vaidator
|
</Text>
|
||||||
</Text>
|
<Text size={15}>
|
||||||
</YStack>
|
This panel will give you additional settings to manage your vaidator
|
||||||
|
</Text>
|
||||||
|
</YStack>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue