diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2017-12-21 14:10:05 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-01-03 11:57:35 +0100 |
| commit | 7028023e6a53b2644a4029acf45b0e9d2bf2ecc1 (patch) | |
| tree | 83500664cbf8b42edf4bd3a2a8b6ab9b0573bb19 /app/components/Settings.js | |
| parent | d9f182e02742f9266941e4263e3e8f9cd92f6d32 (diff) | |
| download | mullvadvpn-7028023e6a53b2644a4029acf45b0e9d2bf2ecc1.tar.xz mullvadvpn-7028023e6a53b2644a4029acf45b0e9d2bf2ecc1.zip | |
Add Preferences page
Diffstat (limited to 'app/components/Settings.js')
| -rw-r--r-- | app/components/Settings.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/components/Settings.js b/app/components/Settings.js index fe73ffd0af..34e518e401 100644 --- a/app/components/Settings.js +++ b/app/components/Settings.js @@ -18,6 +18,7 @@ export type SettingsProps = { onClose: () => void, onViewAccount: () => void, onViewSupport: () => void, + onViewPreferences: () => void, onViewAdvancedSettings: () => void, onExternalLink: (type: string) => void }; @@ -58,6 +59,7 @@ export default class Settings extends Component { {/* show account options when logged in */} {isLoggedIn ? ( <View style={styles.settings_account} testName='settings__account'> + <Button onPress={ this.props.onViewAccount } testName='settings__view_account'> <View style={styles.settings__cell}> <Text style={styles.settings__cell_label}>Account</Text> @@ -75,6 +77,15 @@ export default class Settings extends Component { ) : null} {isLoggedIn ? ( + <Button onPress={ this.props.onViewPreferences }> + <View style={styles.settings__cell}> + <Text style={styles.settings__cell_label}>Preferences</Text> + <Img style={styles.settings__cell_disclosure} source='icon-chevron' tintColor='currentColor' /> + </View> + </Button> + ) : null} + + {isLoggedIn ? ( <Button onPress={ this.props.onViewAdvancedSettings }> <View style={styles.settings__cell}> <Text style={styles.settings__cell_label}>Advanced</Text> |
