Client: Layout: delete useless

This commit is contained in:
Viktor Fomin 2022-11-07 16:10:20 +05:00
parent d88c619876
commit dc5833d328

View File

@ -31,7 +31,7 @@ const StyledContainer = styled.div`
`; `;
const Layout = (props) => { const Layout = (props) => {
const { children, isTabletView, setIsTabletView, isBannerVisible } = props; const { children, isTabletView, setIsTabletView } = props;
const [contentHeight, setContentHeight] = useState(); const [contentHeight, setContentHeight] = useState();
const [isPortrait, setIsPortrait] = useState(); const [isPortrait, setIsPortrait] = useState();
@ -74,10 +74,6 @@ const Layout = (props) => {
}; };
}, [isTabletView]); }, [isTabletView]);
useEffect(() => {
changeRootHeight();
}, [isBannerVisible]);
useEffect(() => { useEffect(() => {
const htmlEl = document.getElementsByTagName("html")[0]; const htmlEl = document.getElementsByTagName("html")[0];
const bodyEl = document.getElementsByTagName("body")[0]; const bodyEl = document.getElementsByTagName("body")[0];
@ -185,6 +181,5 @@ export default inject(({ auth, bannerStore }) => {
return { return {
isTabletView: auth.settingsStore.isTabletView, isTabletView: auth.settingsStore.isTabletView,
setIsTabletView: auth.settingsStore.setIsTabletView, setIsTabletView: auth.settingsStore.setIsTabletView,
isBannerVisible: bannerStore.isBannerVisible,
}; };
})(observer(Layout)); })(observer(Layout));