Web: Components: Main: removed useless code

This commit is contained in:
Nikita Gopienko 2022-09-08 14:32:55 +03:00
parent 888744a586
commit f61b7d0f10

View File

@ -19,30 +19,11 @@ const StyledMain = styled.main`
`;
const Main = React.memo((props) => {
// const orientationChanged = React.useCallback(() => {
// if (isIOS && !isFirefox) {
// let vh = (window.innerHeight - 48) * 0.01;
// document.documentElement.style.setProperty("--vh", `${vh}px`);
// }
// }, []);
// React.useEffect(() => {
// orientationChanged();
// if (isIOS && !isFirefox) {
// window.addEventListener("resize", orientationChanged);
// }
// return () => window.removeEventListener("resize", orientationChanged);
// }, []);
//console.log("Main render");
return <StyledMain className="main" {...props} />;
});
/*Main.defaultProps = {
fullscreen: false
};*/
Main.displayName = "Main";
export default Main;