OverlayScroller still needs to be used in PageContentBody

This commit is contained in:
Mark McDowall 2020-03-02 14:06:36 -08:00
parent 8adb788205
commit 77f886ceef
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import React, { Component } from 'react';
import { isLocked } from 'Utilities/scrollLock'; import { isLocked } from 'Utilities/scrollLock';
import { scrollDirections } from 'Helpers/Props'; import { scrollDirections } from 'Helpers/Props';
import OverlayScroller from 'Components/Scroller/OverlayScroller'; import OverlayScroller from 'Components/Scroller/OverlayScroller';
import Scroller from 'Components/Scroller/Scroller';
import styles from './PageContentBody.css'; import styles from './PageContentBody.css';
class PageContentBody extends Component { class PageContentBody extends Component {
@ -31,7 +32,7 @@ class PageContentBody extends Component {
...otherProps ...otherProps
} = this.props; } = this.props;
const ScrollerComponent = OverlayScroller; const ScrollerComponent = isSmallScreen ? Scroller : OverlayScroller;
return ( return (
<ScrollerComponent <ScrollerComponent