diff --git a/ui/src/shared/components/FancyScrollbar.js b/ui/src/shared/components/FancyScrollbar.js index 87f414144..dd5d241ab 100644 --- a/ui/src/shared/components/FancyScrollbar.js +++ b/ui/src/shared/components/FancyScrollbar.js @@ -12,6 +12,10 @@ class FancyScrollbar extends Component { autoHeight: false, } + handleMakeDiv = className => props => { + return
+ } + render() { const {autoHide, autoHeight, children, className, maxHeight} = this.props @@ -25,15 +29,11 @@ class FancyScrollbar extends Component { autoHideDuration={250} autoHeight={autoHeight} autoHeightMax={maxHeight} - renderTrackHorizontal={props => -
} - renderTrackVertical={props => -
} - renderThumbHorizontal={props => -
} - renderThumbVertical={props => -
} - renderView={props =>
} + renderTrackHorizontal={this.handleMakeDiv('track-h')} + renderTrackVertical={this.handleMakeDiv('track-v')} + renderThumbHorizontal={this.handleMakeDiv('thumb-h')} + renderThumbVertical={this.handleMakeDiv('thumb-v')} + renderView={this.handleMakeDiv('view')} > {children}