feat(left-manage): make 100% width modal background
This commit is contained in:
parent
afb43dee76
commit
46368accfb
|
@ -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' }}
|
||||
|
|
Loading…
Reference in New Issue