diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-07-18 15:07:37 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-08-15 17:39:38 +0200 |
| commit | 71592249b2dd669b6f24f37bfb7b0f4e43b74998 (patch) | |
| tree | a6097dc7e5d94d06e99c65fdfe160e824395f50c /app/components/Layout.js | |
| parent | e84e87f4ce5a8c242f756566cdc6fb59a45f7bea (diff) | |
| download | mullvadvpn-71592249b2dd669b6f24f37bfb7b0f4e43b74998.tar.xz mullvadvpn-71592249b2dd669b6f24f37bfb7b0f4e43b74998.zip | |
Add workspaces
Diffstat (limited to 'app/components/Layout.js')
| -rw-r--r-- | app/components/Layout.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/app/components/Layout.js b/app/components/Layout.js deleted file mode 100644 index 42e96640c0..0000000000 --- a/app/components/Layout.js +++ /dev/null @@ -1,36 +0,0 @@ -// @flow - -import * as React from 'react'; -import { View, Component } from 'reactxp'; -import HeaderBar from './HeaderBar'; -import styles from './LayoutStyles'; - -export class Header extends Component<React.ElementProps<typeof HeaderBar>> { - static defaultProps = HeaderBar.defaultProps; - - render() { - return ( - <View style={[styles.header, this.props.style]}> - <HeaderBar barStyle={this.props.barStyle}>{this.props.children}</HeaderBar> - </View> - ); - } -} - -type ContainerProps = { - children: React.Node, -}; -export class Container extends Component<ContainerProps> { - render() { - return <View style={styles.container}>{this.props.children}</View>; - } -} - -type LayoutProps = { - children: Array<React.Node> | React.Node, -}; -export class Layout extends Component<LayoutProps> { - render() { - return <View style={styles.layout}>{this.props.children}</View>; - } -} |
