summaryrefslogtreecommitdiffhomepage
path: root/app/components/PlatformWindow.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-02-16 14:11:34 +0100
committerAndrej Mihajlov <and@mullvad.net>2018-02-20 17:48:28 +0100
commit2c741a45b85ec334c6c09be01f3062065c998265 (patch)
treedea0731722ebbde98157f2798d3f33c41f2ded08 /app/components/PlatformWindow.js
parentf58b1790b50abf340d8567b23b329ee9c0c14e3b (diff)
downloadmullvadvpn-2c741a45b85ec334c6c09be01f3062065c998265.tar.xz
mullvadvpn-2c741a45b85ec334c6c09be01f3062065c998265.zip
Fix flow annotations to work on flow v0.66
Diffstat (limited to 'app/components/PlatformWindow.js')
-rw-r--r--app/components/PlatformWindow.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/components/PlatformWindow.js b/app/components/PlatformWindow.js
index 8b8e2c462f..b727cdd7b1 100644
--- a/app/components/PlatformWindow.js
+++ b/app/components/PlatformWindow.js
@@ -1,11 +1,12 @@
// @flow
-import React, { Component } from 'react';
+import * as React from 'react';
-export default class PlatformWindow extends Component {
- props: {
- children: Array<React.Element<*>> | React.Element<*>
- }
- render(): React.Element<*> {
+type Props = {
+ children?: React.Node
+};
+
+export default class PlatformWindow extends React.Component<Props> {
+ render() {
const chromeClass = ['window-chrome', 'window-chrome--' + process.platform];
return (
<div className={ chromeClass.join(' ') }>