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 { 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));
|
||||
|
Loading…
Reference in New Issue
Block a user