Merge branch 'release/1.25.5'

This commit is contained in:
AmirHossein Mahmoodi
2023-12-20 15:24:13 +03:30
3 changed files with 16 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
NEXT_PUBLIC_API_NAME = "Loan Facilities Dashboard"
NEXT_PUBLIC_API_VERSION = "1.25.4"
NEXT_PUBLIC_API_VERSION = "1.25.5"
NEXT_PUBLIC_DEFAULT_LANGUAGE = "fa"
NEXT_PUBLIC_DEFAULT_DIRECTION = "rtl"

View File

@@ -98,7 +98,20 @@ const SendTokenComponent = ({
placeholder={t(
"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={
!!(props.touched.verification_code && props.errors.verification_code)
}

View File

@@ -81,6 +81,7 @@ const SendUserDataComponent = ({
placeholder={t(
"LoginPage.text_field_enter_your_phone_number"
)}
value={props.values.phone_number}
type={"tel"}
onChange={(event) => {
const inputValue = event.target.value;