diff options
Diffstat (limited to 'app/components/CustomScrollbars.js')
| -rw-r--r-- | app/components/CustomScrollbars.js | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/app/components/CustomScrollbars.js b/app/components/CustomScrollbars.js index e74cbd7c65..4a0899c1be 100644 --- a/app/components/CustomScrollbars.js +++ b/app/components/CustomScrollbars.js @@ -1,28 +1,13 @@ +// @flow import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import { Scrollbars } from 'react-custom-scrollbars'; -/** - * Custom scrollbars component - * - * @export - * @class CustomScrollbars - * @extends {React.Component} - */ export default class CustomScrollbars extends Component { - /** - * PropTypes - * @static - * @memberOf CustomScrollbars - */ - static propTypes = { - children: PropTypes.element + props: { + children: ?React.Element<*> } - /** - * @override - */ - render() { + render(): React.Element<*> { return ( <Scrollbars { ...this.props } |
