Skip to content

Commit

Permalink
Merge pull request #372 from codeBigInt/feat/#39-password-setting-imp…
Browse files Browse the repository at this point in the history
…lementation

feat: reviewed password setting form
  • Loading branch information
mrcoded authored Jul 22, 2024
2 parents 297f5b9 + 7f5f0a6 commit 52d4b9b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/components/passwordSetting/PasswordSettingForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ export default function PasswordSetting() {
const watchForConfirmPassword = watch("confirmPassword", "");
const watchForCurrentPassword = watch("currentPassword");

const maskedNewPassword = "*".repeat(watchForNewPassword.length);
const maskedConfirmPassword = "*".repeat(watchForConfirmPassword.length);
const maskedCurrentPassword = "*".repeat(watchForCurrentPassword.length);

//Toggle submit diasbled to true if all field have value more than 8
const isFormDisabled =
watchForNewPassword.length < 8 ||
Expand Down Expand Up @@ -128,7 +124,6 @@ export default function PasswordSetting() {
required: true,
})}
type={inputType}
value={maskedCurrentPassword}
/>
<Button
className="absolute right-[1em] bg-transparent text-[#939393] hover:bg-transparent"
Expand Down Expand Up @@ -162,7 +157,6 @@ export default function PasswordSetting() {
{...register("newPassword", {
required: true,
})}
value={maskedNewPassword}
/>
<Button
className="absolute right-[1em] bg-transparent text-[#939393] hover:bg-transparent"
Expand Down Expand Up @@ -231,7 +225,6 @@ export default function PasswordSetting() {
required: true,
})}
type={inputType}
value={maskedConfirmPassword}
/>
<Button
className="absolute right-[1em] bg-transparent text-[#939393] hover:bg-transparent"
Expand Down

0 comments on commit 52d4b9b

Please sign in to comment.