diff options
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>; } } |
