feat(left-manage): make 100% width modal background

This commit is contained in:
RadoslavDimchev 2024-04-16 10:53:53 +03:00 committed by Radoslav Dimchev
parent afb43dee76
commit 46368accfb
1 changed files with 5 additions and 2 deletions

View File

@ -10,14 +10,17 @@ import ValidatorGraffiti from './ValidatorGraffiti/ValidatorGraffiti'
import ValidatorDataTabs from './ManageValidatorTable/ValidatorDataTabs'
import ValidatorBlueSection from './ValidatorBlueSection/ValidatorBlueSection'
import Footer from './PageParts/Footer'
import { useWindowSize } from '../../../hooks/useWindowSize'
const LeftManage = () => {
const [isVisibleWarning, setIsVisibleWarning] = useState(true)
const { width } = useWindowSize()
const isModalWidth = width < 1160
return (
<YStack
width={'50%'}
maxWidth="50%"
width={isModalWidth ? '100%' : '50%'}
maxWidth={isModalWidth ? '100%' : '50%'}
flexGrow={1}
space={'$3'}
style={{ borderRight: '1px solid #DCE0E5' }}