Procházet zdrojové kódy

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek před 1 rokem
rodič
revize
fe5eebc6b7
2 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. +1
    -1
      src/components/ChangePassword/ChangePasswordForm.tsx
  2. +0
    -1
      src/components/ChangePassword/ChangePasswordWrapper.tsx

+ 1
- 1
src/components/ChangePassword/ChangePasswordForm.tsx Zobrazit soubor

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


+ 0
- 1
src/components/ChangePassword/ChangePasswordWrapper.tsx Zobrazit soubor

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


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




Načítá se…
Zrušit
Uložit