Skip to content

Commit

Permalink
fix: auth2 QA omnibus (#11080)
Browse files Browse the repository at this point in the history
* fix: auth2 QA omnibus

* puts the useAndroidStatusBarColor hook back

* removes clear button from social linking password field
  • Loading branch information
iskounen authored Nov 8, 2024
1 parent 5deadbd commit 253cadf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/app/Scenes/Onboarding/Auth2/AuthApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import { AuthScenes } from "app/Scenes/Onboarding/Auth2/AuthScenes"
import { AuthBackground } from "app/Scenes/Onboarding/Auth2/components/AuthBackground"
import { AuthModal } from "app/Scenes/Onboarding/Auth2/components/AuthModal"
import { useAndroidStatusBarColor } from "app/Scenes/Onboarding/Auth2/hooks/useAndroidStatusBarColor"
import { useSwitchStatusBarStyle } from "app/utils/useStatusBarStyle"
import React from "react"

export const AuthApp: React.FC = () => {
useSwitchStatusBarStyle("light-content", "dark-content")
useAndroidStatusBarColor()

return (
Expand Down
2 changes: 1 addition & 1 deletion src/app/Scenes/Onboarding/Auth2/scenes/LoginOTPStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const LoginOTPStep: React.FC = () => {
<Input
autoCapitalize="none"
autoComplete="one-time-code"
importantForAutofill="yes"
autoCorrect={false}
blurOnSubmit={false}
error={errors.otp}
Expand All @@ -103,7 +104,6 @@ export const LoginOTPStep: React.FC = () => {
returnKeyType="done"
title={codeType === "authentication" ? "Authentication code" : "Recovery code"}
value={values.otp}
textContentType="oneTimeCode"
onChangeText={(text) => {
handleChange("otp")(text)
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ const LoginPasswordStepForm: React.FC = () => {
<Input
autoCapitalize="none"
autoComplete="password"
importantForAutofill="yes"
autoCorrect={false}
blurOnSubmit={false}
error={submitCount > 0 ? errors.password : undefined}
placeholderTextColor={color("black30")}
ref={passwordRef}
returnKeyType="done"
secureTextEntry
textContentType="password"
testID="password"
title="Password"
value={values.password}
Expand Down
4 changes: 2 additions & 2 deletions src/app/Scenes/Onboarding/Auth2/scenes/LoginWelcomeStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ const LoginWelcomeStepForm: React.FC = () => {

<Input
autoCapitalize="none"
autoComplete="email"
autoComplete="username"
importantForAutofill="yes"
autoCorrect={false}
blurOnSubmit={false}
placeholderTextColor={color("black30")}
ref={emailRef}
spellCheck={false}
keyboardType="email-address"
textContentType="username"
returnKeyType="next"
title="Email"
value={values.email}
Expand Down
1 change: 0 additions & 1 deletion src/app/Scenes/Onboarding/OnboardingSocialLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ export const OnboardingSocialLink: React.FC<
}}
onSubmitEditing={handleSubmit}
blurOnSubmit={false}
clearButtonMode="while-editing"
placeholder="Password"
returnKeyType="go"
textContentType="password"
Expand Down

0 comments on commit 253cadf

Please sign in to comment.