Web: Common: Removed unused prop
This commit is contained in:
parent
abda53a082
commit
ea3f287acb
@ -108,10 +108,8 @@ class PageLayoutComponent extends React.Component {
|
||||
this.orientationChangeHandler
|
||||
);
|
||||
|
||||
if(this.intervalHandler)
|
||||
clearInterval(this.intervalHandler);
|
||||
if(this.timeoutHandler)
|
||||
clearTimeout(this.timeoutHandler);
|
||||
if (this.intervalHandler) clearInterval(this.intervalHandler);
|
||||
if (this.timeoutHandler) clearTimeout(this.timeoutHandler);
|
||||
}
|
||||
|
||||
orientationChangeHandler = () => {
|
||||
@ -135,13 +133,11 @@ class PageLayoutComponent extends React.Component {
|
||||
let lastInnerHeight, noChangeCount;
|
||||
|
||||
const updateHeight = () => {
|
||||
if(this.intervalHandler)
|
||||
clearInterval(this.intervalHandler);
|
||||
if(this.timeoutHandler)
|
||||
clearTimeout(this.timeoutHandler);
|
||||
if (this.intervalHandler) clearInterval(this.intervalHandler);
|
||||
if (this.timeoutHandler) clearTimeout(this.timeoutHandler);
|
||||
|
||||
this.intervalHandler = null;
|
||||
this.timeoutHandler = null;
|
||||
this.intervalHandler = null;
|
||||
this.timeoutHandler = null;
|
||||
|
||||
const vh = (window.innerHeight - 57) * 0.01;
|
||||
document.documentElement.style.setProperty("--vh", `${vh}px`);
|
||||
@ -341,9 +337,7 @@ class PageLayoutComponent extends React.Component {
|
||||
>
|
||||
<Section widthProp={width}>
|
||||
{isSectionHeaderAvailable && (
|
||||
<SubSectionHeader
|
||||
isArticlePinned={this.state.isArticlePinned}
|
||||
>
|
||||
<SubSectionHeader>
|
||||
{sectionHeaderContent
|
||||
? sectionHeaderContent.props.children
|
||||
: null}
|
||||
|
Loading…
Reference in New Issue
Block a user