summaryrefslogtreecommitdiffhomepage
path: root/app/components/CustomScrollbars.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-07-03 12:06:05 +0300
committerAndrej Mihajlov <and@codeispoetry.ru>2017-07-03 12:06:05 +0300
commit4e8f44c7ef6ffee09d9d3abd70bfd093f87d6b18 (patch)
treea0b84c64f77fb3316f33bc031760172fce0fd0cc /app/components/CustomScrollbars.js
parentab9d8b2471dbcd54bb882b3b6722626f81b71053 (diff)
parent5b5c897152a2208e546e56d6bdd731e2bb04ae80 (diff)
downloadmullvadvpn-4e8f44c7ef6ffee09d9d3abd70bfd093f87d6b18.tar.xz
mullvadvpn-4e8f44c7ef6ffee09d9d3abd70bfd093f87d6b18.zip
Merge branch 'feature/flow-typed/components'
Diffstat (limited to 'app/components/CustomScrollbars.js')
-rw-r--r--app/components/CustomScrollbars.js23
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 }