Client: Layout: delete useless
This commit is contained in:
parent
d88c619876
commit
dc5833d328
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user