summaryrefslogtreecommitdiffhomepage
path: root/app/components/WindowChrome.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/WindowChrome.js
parentab9d8b2471dbcd54bb882b3b6722626f81b71053 (diff)
parent5b5c897152a2208e546e56d6bdd731e2bb04ae80 (diff)
downloadmullvadvpn-4e8f44c7ef6ffee09d9d3abd70bfd093f87d6b18.tar.xz
mullvadvpn-4e8f44c7ef6ffee09d9d3abd70bfd093f87d6b18.zip
Merge branch 'feature/flow-typed/components'
Diffstat (limited to 'app/components/WindowChrome.js')
-rw-r--r--app/components/WindowChrome.js18
1 files changed, 4 insertions, 14 deletions
diff --git a/app/components/WindowChrome.js b/app/components/WindowChrome.js
index 16bdb70e28..141c99fdb4 100644
--- a/app/components/WindowChrome.js
+++ b/app/components/WindowChrome.js
@@ -1,20 +1,10 @@
+// @flow
import React, { Component } from 'react';
-import PropTypes from 'prop-types';
-/**
- * A component used to chip out arrow in the app header using CSS mask
- *
- * @export
- * @class WindowChrome
- * @extends {Component}
- */
export default class WindowChrome extends Component {
- static propTypes = {
- children: PropTypes.oneOfType([
- PropTypes.arrayOf(PropTypes.element),
- PropTypes.element,
- ])
- };
+ props: {
+ children: Array<React.Element<*>> | React.Element<*>
+ }
render() {
const chromeClass = ['window-chrome', 'window-chrome--' + process.platform];