summaryrefslogtreecommitdiffhomepage
path: root/app/components/WindowChrome.js
diff options
context:
space:
mode:
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];