diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-06-01 16:13:10 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-06-05 12:11:55 +0200 |
| commit | ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087 (patch) | |
| tree | b1f7754eb50896ab3681e35fa4e08be642b940c9 /app/components/Layout.js | |
| parent | 5852c980980de53e00d76a0bdb4b41bf5c0f5b39 (diff) | |
| download | mullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.tar.xz mullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.zip | |
Add formatted source code
Diffstat (limited to 'app/components/Layout.js')
| -rw-r--r-- | app/components/Layout.js | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/app/components/Layout.js b/app/components/Layout.js index dea641919c..23d8e7c20c 100644 --- a/app/components/Layout.js +++ b/app/components/Layout.js @@ -14,7 +14,7 @@ export class Header extends Component { render() { return ( <View style={styles.header}> - <HeaderBar { ...this.props } /> + <HeaderBar {...this.props} /> </View> ); } @@ -22,28 +22,20 @@ export class Header extends Component { export class Container extends Component { props: { - children: React.Node - } + children: React.Node, + }; render() { - return ( - <View style={styles.container}> - { this.props.children } - </View> - ); + return <View style={styles.container}>{this.props.children}</View>; } } export class Layout extends Component { props: { - children: Array<React.Node> | React.Node - } + children: Array<React.Node> | React.Node, + }; render() { - return ( - <View style={styles.layout}> - { this.props.children } - </View> - ); + return <View style={styles.layout}>{this.props.children}</View>; } } |
