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/Preferences.js | |
| parent | 5852c980980de53e00d76a0bdb4b41bf5c0f5b39 (diff) | |
| download | mullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.tar.xz mullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.zip | |
Add formatted source code
Diffstat (limited to 'app/components/Preferences.js')
| -rw-r--r-- | app/components/Preferences.js | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/app/components/Preferences.js b/app/components/Preferences.js index d24d99c042..afe802d958 100644 --- a/app/components/Preferences.js +++ b/app/components/Preferences.js @@ -7,9 +7,9 @@ import Switch from './Switch'; import styles from './PreferencesStyles'; export type PreferencesProps = { - allowLan: boolean; - onChangeAllowLan: (boolean) => void; - onClose: () => void; + allowLan: boolean, + onChangeAllowLan: (boolean) => void, + onClose: () => void, }; export default class Preferences extends Component { @@ -18,33 +18,37 @@ export default class Preferences extends Component { render() { return ( <Layout> - <Header hidden={ true } style={ 'defaultDark' } /> + <Header hidden={true} style={'defaultDark'} /> <Container> - <View style={ styles.preferences }> - <Button style={ styles.preferences__close } onPress={ this.props.onClose } testName='closeButton'> - <View style={ styles.preferences__close_content }> - <Img style={ styles.preferences__close_icon } source="icon-back" /> - <Text style={ styles.preferences__close_title }>Settings</Text> + <View style={styles.preferences}> + <Button + style={styles.preferences__close} + onPress={this.props.onClose} + testName="closeButton"> + <View style={styles.preferences__close_content}> + <Img style={styles.preferences__close_icon} source="icon-back" /> + <Text style={styles.preferences__close_title}>Settings</Text> </View> </Button> - <View style={ styles.preferences__container }> - - <View style={ styles.preferences__header }> - <Text style={ styles.preferences__title }>Preferences</Text> + <View style={styles.preferences__container}> + <View style={styles.preferences__header}> + <Text style={styles.preferences__title}>Preferences</Text> </View> - <View style={ styles.preferences__content }> - <View style={ styles.preferences__cell }> - <View style={ styles.preferences__cell_label_container }> - <Text style={ styles.preferences__cell_label }>Local network sharing</Text> + <View style={styles.preferences__content}> + <View style={styles.preferences__cell}> + <View style={styles.preferences__cell_label_container}> + <Text style={styles.preferences__cell_label}>Local network sharing</Text> </View> - <View style={ styles.preferences__cell_accessory }> - <Switch isOn={ this.props.allowLan } onChange={ this.props.onChangeAllowLan } /> + <View style={styles.preferences__cell_accessory}> + <Switch isOn={this.props.allowLan} onChange={this.props.onChangeAllowLan} /> </View> </View> - <View style={ styles.preferences__cell_footer }> - <Text style={ styles.preferences__cell_footer_label }> - { 'Allows access to other devices on the same network for sharing, printing etc.' } + <View style={styles.preferences__cell_footer}> + <Text style={styles.preferences__cell_footer_label}> + { + 'Allows access to other devices on the same network for sharing, printing etc.' + } </Text> </View> </View> |
