diff --git a/src/components/ChangePassword/ChangePasswordForm.tsx b/src/components/ChangePassword/ChangePasswordForm.tsx index 4553c64..db85517 100644 --- a/src/components/ChangePassword/ChangePasswordForm.tsx +++ b/src/components/ChangePassword/ChangePasswordForm.tsx @@ -93,11 +93,7 @@ const ChagnePasswordForm: React.FC = ({ pwRules:rules }) => } }); }; - - if (!/[-!@#$%^&=+_*(),.?":{}|<>]/.test('12')) { - console.log(!/[-!@#$%^&=+_*(),.?":{}|<>]/.test('12')) - } - + const handleInputChange = (event: React.ChangeEvent) => { // Update the theme with the new color based on the input value const newInputValue = event.target.value; @@ -191,9 +187,7 @@ const ChagnePasswordForm: React.FC = ({ pwRules:rules }) => component: (props) => { return ( - {(props.children as string[]).map((line, index) => { - console.log(index, getColorFromInput(inputValue, msgList)[index]) - return ( + {(props.children as string[]).map((line, index) => ( = ({ pwRules:rules }) => )} {line} {index < - (props.children as string[]).length && ( + (props.children as string[]).length - 1 && (
)}
- )} + ) )}
);