mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
hide mfa option if using older server
This commit is contained in:
parent
f83cf8d25e
commit
2804de9972
@ -225,6 +225,7 @@ export function Settings({ drawer }) {
|
|||||||
</View>
|
</View>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
|
|
||||||
|
{ state.mfaEnabled != null && (
|
||||||
<TouchableOpacity style={styles.drawerEntry} activeOpacity={1}>
|
<TouchableOpacity style={styles.drawerEntry} activeOpacity={1}>
|
||||||
<View style={styles.icon}>
|
<View style={styles.icon}>
|
||||||
<MatIcons name="ticket-confirmation-outline" size={20} color={Colors.text} />
|
<MatIcons name="ticket-confirmation-outline" size={20} color={Colors.text} />
|
||||||
@ -237,6 +238,7 @@ export function Settings({ drawer }) {
|
|||||||
trackColor={styles.track} onValueChange={toggleMFA} />
|
trackColor={styles.track} onValueChange={toggleMFA} />
|
||||||
</View>
|
</View>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
|
)}
|
||||||
|
|
||||||
<TouchableOpacity style={styles.drawerEntry} activeOpacity={1} onPress={actions.showLogin}>
|
<TouchableOpacity style={styles.drawerEntry} activeOpacity={1} onPress={actions.showLogin}>
|
||||||
<View style={styles.icon}>
|
<View style={styles.icon}>
|
||||||
@ -392,7 +394,10 @@ export function Settings({ drawer }) {
|
|||||||
<Text style={styles.optionLink}>{ state.strings.logout }</Text>
|
<Text style={styles.optionLink}>{ state.strings.logout }</Text>
|
||||||
</View>
|
</View>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
|
{ state.mfaEnabled != null && (
|
||||||
<View style={styles.divider} />
|
<View style={styles.divider} />
|
||||||
|
)}
|
||||||
|
{ state.mfaEnabled != null && (
|
||||||
<TouchableOpacity style={styles.entry} activeOpacity={1}>
|
<TouchableOpacity style={styles.entry} activeOpacity={1}>
|
||||||
<View style={styles.icon}>
|
<View style={styles.icon}>
|
||||||
<MatIcons name="ticket-confirmation-outline" size={20} color={Colors.linkText} />
|
<MatIcons name="ticket-confirmation-outline" size={20} color={Colors.linkText} />
|
||||||
@ -405,6 +410,7 @@ export function Settings({ drawer }) {
|
|||||||
trackColor={styles.track} onValueChange={toggleMFA} />
|
trackColor={styles.track} onValueChange={toggleMFA} />
|
||||||
</View>
|
</View>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
|
)}
|
||||||
<View style={styles.divider} />
|
<View style={styles.divider} />
|
||||||
<TouchableOpacity style={styles.entry} activeOpacity={1} onPress={actions.showLogin}>
|
<TouchableOpacity style={styles.entry} activeOpacity={1} onPress={actions.showLogin}>
|
||||||
<View style={styles.icon}>
|
<View style={styles.icon}>
|
||||||
|
Loading…
Reference in New Issue
Block a user