diff options
| author | anderklander <anderklander@gmail.com> | 2018-01-17 14:01:22 +0100 |
|---|---|---|
| committer | anderklander <anderklander@gmail.com> | 2018-01-18 19:57:22 +0100 |
| commit | c873ba2643b2fdc94187f02610530777fdf25895 (patch) | |
| tree | ec9678f318a0d305770af1e81cfb33312c3eba04 /app/components/PlatformWindow.js | |
| parent | be2cdd817bfd7f412156c0204bdb4ed77a17f7e4 (diff) | |
| download | mullvadvpn-c873ba2643b2fdc94187f02610530777fdf25895.tar.xz mullvadvpn-c873ba2643b2fdc94187f02610530777fdf25895.zip | |
Rename WindowChrome
And add KeyboardAvoidingView as a platform specific window for android.
Diffstat (limited to 'app/components/PlatformWindow.js')
| -rw-r--r-- | app/components/PlatformWindow.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/components/PlatformWindow.js b/app/components/PlatformWindow.js new file mode 100644 index 0000000000..8b8e2c462f --- /dev/null +++ b/app/components/PlatformWindow.js @@ -0,0 +1,16 @@ +// @flow +import React, { Component } from 'react'; + +export default class PlatformWindow extends Component { + props: { + children: Array<React.Element<*>> | React.Element<*> + } + render(): React.Element<*> { + const chromeClass = ['window-chrome', 'window-chrome--' + process.platform]; + return ( + <div className={ chromeClass.join(' ') }> + { this.props.children } + </div> + ); + } +}
\ No newline at end of file |
