FIX: Unlock button width

This commit is contained in:
Marcos Rodriguez Velez 2024-03-15 18:38:32 -04:00
parent 6c51c4045b
commit a0c27ff356
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7
2 changed files with 2 additions and 2 deletions

View File

@ -106,6 +106,7 @@ const UnlockWith: React.FC = () => {
dispatch({ type: SET_AUTH, payload: { type: AuthType.Biometrics, detail: biometricType } });
unlockWithBiometrics();
} else if (biometricsUseEnabled && biometricType === undefined) {
triggerHapticFeedback(HapticFeedbackTypes.NotificationError);
dispatch({ type: SET_AUTH, payload: { type: AuthType.BiometricsUnavailable, detail: undefined } });
} else {
dispatch({ type: SET_AUTH, payload: { type: AuthType.None, detail: undefined } });
@ -164,7 +165,7 @@ const styles = StyleSheet.create({
biometricRow: {
justifyContent: 'center',
flexDirection: 'row',
minWidth: 128,
width: 300,
height: 60,
alignSelf: 'center',
marginBottom: 20,

View File

@ -136,7 +136,6 @@ const EncryptStorage = () => {
return isCapable ? (
<>
<BlueText />
<BlueText>{loc.formatString(loc.settings.biometrics_fail, { type: biometrics.biometricsType })}</BlueText>
</>
) : null;