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