summaryrefslogtreecommitdiffhomepage
path: root/app/components/PlatformWindow.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-02-21 10:45:11 +0100
committerAndrej Mihajlov <and@mullvad.net>2018-02-21 10:45:11 +0100
commitde737c54c413f96c35b4e9bc6280fc7d26e4fa83 (patch)
tree0cf470c59b4c7c8a6327e64610f68f5facd78d6d /app/components/PlatformWindow.js
parentae9c255b3ecdec341090c932db6cb261147a7382 (diff)
parent1214138633bcca19a1b96622400f3fbcf4044bd9 (diff)
downloadmullvadvpn-de737c54c413f96c35b4e9bc6280fc7d26e4fa83.tar.xz
mullvadvpn-de737c54c413f96c35b4e9bc6280fc7d26e4fa83.zip
Merge branch 'update-flow'
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(' ') }>