Web: Components: Main: removed useless code
This commit is contained in:
parent
888744a586
commit
f61b7d0f10
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user