Web: Common: Removed unused prop

This commit is contained in:
Alexey Kostenko 2020-12-10 14:25:51 +03:00
parent abda53a082
commit ea3f287acb

View File

@ -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,10 +133,8 @@ 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;
@ -341,9 +337,7 @@ class PageLayoutComponent extends React.Component {
>
<Section widthProp={width}>
{isSectionHeaderAvailable && (
<SubSectionHeader
isArticlePinned={this.state.isArticlePinned}
>
<SubSectionHeader>
{sectionHeaderContent
? sectionHeaderContent.props.children
: null}