Pārlūkot izejas kodu

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek pirms 1 gada
vecāks
revīzija
fe5eebc6b7
2 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      src/components/ChangePassword/ChangePasswordForm.tsx
  2. +0
    -1
      src/components/ChangePassword/ChangePasswordWrapper.tsx

+ 1
- 1
src/components/ChangePassword/ChangePasswordForm.tsx Parādīt failu

@@ -74,7 +74,7 @@ const ChagnePasswordForm: React.FC<PasswordRulesProps> = ({ pwRules:rules }) =>
// Determine the color for each line based on the input value
return helperTextLines.map((_, index) => {
if ((index === 0 && inputValue.length < rules.min) || inputValue.length > rules.max) {
// setError("newPassword", { type: "required" })
// testing length
return "red";
} else if (index === 1 && rules.upperEng &&!/[A-Z]/.test(inputValue)) {
//testing for uppercase letters


+ 0
- 1
src/components/ChangePassword/ChangePasswordWrapper.tsx Parādīt failu

@@ -9,7 +9,6 @@ interface SubComponents {

const ChangePasswordWrapper: React.FC & SubComponents = async () => {
const pwRules = await fetchPwRules()
console.log(pwRules)
return <ChangePassword pwRules={pwRules}/>;
};



Notiek ielāde…
Atcelt
Saglabāt