Scrollable content
++ Scrollable content +
Scrollable content
-(WrappedComponent: React.ComponentType
) { - return class extends React.Component
{
- static defaultProps = withScrollBarDefaultProps;
-
- render() {
- // Use type casting here in order to get rest of the props working. See more
- // https://github.com/Microsoft/TypeScript/issues/14409
- // https://github.com/Microsoft/TypeScript/pull/13288
- const { autoHide, autoHideTimeout, autoHideDuration, hideTracksWhenNotNeeded, customClassName, ...props } = this
- .props as WithScrollBarProps;
- const scrollProps = { autoHide, autoHideTimeout, autoHideDuration, hideTracksWhenNotNeeded };
-
- return (
-