Merge pull request #6276 from BlueWallet/unlockd

FIX: Unlock button width
This commit is contained in:
GLaDOS 2024-03-16 10:35:58 +00:00 committed by GitHub
commit 7a39aecdc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;