summaryrefslogtreecommitdiffhomepage
path: root/app/components/Layout.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-06-01 16:13:10 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-06-05 12:11:55 +0200
commitca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087 (patch)
treeb1f7754eb50896ab3681e35fa4e08be642b940c9 /app/components/Layout.js
parent5852c980980de53e00d76a0bdb4b41bf5c0f5b39 (diff)
downloadmullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.tar.xz
mullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.zip
Add formatted source code
Diffstat (limited to 'app/components/Layout.js')
-rw-r--r--app/components/Layout.js22
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>;
}
}