Merge branch 'bugfix/yasi_fixed_login_code' into 'develop'
This commit is contained in:
@@ -98,7 +98,20 @@ const SendTokenComponent = ({
|
|||||||
placeholder={t(
|
placeholder={t(
|
||||||
"LoginPage.text_field_enter_your_verification_code"
|
"LoginPage.text_field_enter_your_verification_code"
|
||||||
)}
|
)}
|
||||||
type={"text"}
|
value={props.values.verification_code}
|
||||||
|
type={"tel"}
|
||||||
|
onChange={(event) => {
|
||||||
|
const inputValue = event.target.value;
|
||||||
|
if (isNaN(Number(inputValue))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
props.handleChange({
|
||||||
|
target: {
|
||||||
|
name: "verification_code",
|
||||||
|
value: inputValue,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}}
|
||||||
error={
|
error={
|
||||||
!!(props.touched.verification_code && props.errors.verification_code)
|
!!(props.touched.verification_code && props.errors.verification_code)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ const SendUserDataComponent = ({
|
|||||||
placeholder={t(
|
placeholder={t(
|
||||||
"LoginPage.text_field_enter_your_phone_number"
|
"LoginPage.text_field_enter_your_phone_number"
|
||||||
)}
|
)}
|
||||||
|
value={props.values.phone_number}
|
||||||
type={"tel"}
|
type={"tel"}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
const inputValue = event.target.value;
|
const inputValue = event.target.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user