hide mfa option if using older server

This commit is contained in:
Roland Osborne 2024-05-24 15:03:28 -07:00
parent f83cf8d25e
commit 2804de9972

View File

@ -225,6 +225,7 @@ export function Settings({ drawer }) {
</View>
</TouchableOpacity>
{ state.mfaEnabled != null && (
<TouchableOpacity style={styles.drawerEntry} activeOpacity={1}>
<View style={styles.icon}>
<MatIcons name="ticket-confirmation-outline" size={20} color={Colors.text} />
@ -237,6 +238,7 @@ export function Settings({ drawer }) {
trackColor={styles.track} onValueChange={toggleMFA} />
</View>
</TouchableOpacity>
)}
<TouchableOpacity style={styles.drawerEntry} activeOpacity={1} onPress={actions.showLogin}>
<View style={styles.icon}>
@ -392,7 +394,10 @@ export function Settings({ drawer }) {
<Text style={styles.optionLink}>{ state.strings.logout }</Text>
</View>
</TouchableOpacity>
{ state.mfaEnabled != null && (
<View style={styles.divider} />
)}
{ state.mfaEnabled != null && (
<TouchableOpacity style={styles.entry} activeOpacity={1}>
<View style={styles.icon}>
<MatIcons name="ticket-confirmation-outline" size={20} color={Colors.linkText} />
@ -405,6 +410,7 @@ export function Settings({ drawer }) {
trackColor={styles.track} onValueChange={toggleMFA} />
</View>
</TouchableOpacity>
)}
<View style={styles.divider} />
<TouchableOpacity style={styles.entry} activeOpacity={1} onPress={actions.showLogin}>
<View style={styles.icon}>