From f7be6b5f57eb6daad40cc43cf357c01540aab755 Mon Sep 17 00:00:00 2001 From: behnaz Date: Fri, 12 Jan 2024 17:52:04 +0800 Subject: [PATCH] fix: static (#6520) --- .../validations/_affilaite_validation.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/signup-affiliates/validations/_affilaite_validation.tsx b/src/pages/signup-affiliates/validations/_affilaite_validation.tsx index 12a3413e2ea..f823fc2a5ef 100644 --- a/src/pages/signup-affiliates/validations/_affilaite_validation.tsx +++ b/src/pages/signup-affiliates/validations/_affilaite_validation.tsx @@ -44,7 +44,7 @@ const nameValidation = (input, text, min_digit, max_digit) => { !validation_is_exceed_number(input, max_digit) || !validation_is_lack_number(input, min_digit) ) { - return localize(`_t_You should enter ${min_digit}-${max_digit} characters._t_`) + return localize(`_t_You should enter 2 - 256 characters._t_`) } else if ( affiliate_validation_regex.latin.test(input) || affiliate_validation_regex.name.test(input) @@ -55,7 +55,7 @@ const nameValidation = (input, text, min_digit, max_digit) => { } } const companyNameValidation = (input, min_digit, max_digit) => { - const length_error = localize(`_t_You should enter ${min_digit}-${max_digit} characters._t_`) + const length_error = localize(`_t_You should enter 2 - 256 characters._t_`) if (!input) { return localize('_t_Company name is required_t_') } else if (!/^[a-zA-Z0-9 ]+$/.test(input)) { @@ -89,7 +89,7 @@ const passwordValidation = (input, min_digit, max_digit) => { !validation_is_exceed_number(input, max_digit) || !validation_is_lack_number(input, min_digit) ) { - return localize(`_t_You should enter ${min_digit}-${max_digit} characters._t_`) + return localize(`_t_You should enter 2 - 256 characters._t_`) } else if (!affiliate_validation_regex.password.test(input)) { return localize( `_t_Password should have lower and uppercase English letters with numbers._t_`, @@ -105,7 +105,7 @@ const postcodeValidation = (input, min_digit, max_digit) => { !validation_is_exceed_number(input, max_digit) || !validation_is_lack_number(input, min_digit) ) { - return localize(`_t_You should enter ${min_digit}-${max_digit} characters._t_`) + return localize(`_t_You should enter 2 - 256 characters._t_`) } else if (!affiliate_validation_regex.postal_code.test(input)) { return localize(`_t_Please enter a valid postcode with Latin characters._t_`) } else if (!affiliate_validation_regex.non_empty_string.test(input)) { @@ -131,7 +131,7 @@ const streetValidation = (input, text, min_digit, max_digit) => { !validation_is_exceed_number(input, max_digit) || !validation_is_lack_number(input, min_digit) ) { - return localize(`_t_You should enter ${min_digit}-${max_digit} characters._t_`) + return localize(`_t_You should enter 2 - 256 characters._t_`) } else if (!affiliate_validation_regex.address.test(input)) { return localize('_t_Please enter a valid street_t_') } else if (!affiliate_validation_regex.non_empty_string.test(input)) { @@ -148,7 +148,7 @@ const cityValidation = (input, text, min_digit, max_digit) => { !validation_is_exceed_number(input, max_digit) || !validation_is_lack_number(input, min_digit) ) { - return localize(`_t_You should enter ${min_digit}-${max_digit} characters._t_`) + return localize(`_t_You should enter 2 - 256 characters._t_`) } else if (!affiliate_validation_regex.city.test(input)) { return localize('_t_Please enter a valid city_t_') } else if (!affiliate_validation_regex.non_empty_string.test(input)) {