Skip to content

Commit

Permalink
refactor: rename changePasswordModal
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsola authored and tcsola committed Oct 1, 2024
1 parent b48dd28 commit 528ac02
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const AccountSetting: FC<Props> = ({
informationData
}) => {
const t = useT();
const [passwordModalClosed, setPasswordModalClosed] = useState<boolean>(true);
const [changePasswordModal, setChangePasswordModal] =
useState<boolean>(false);

return (
<InnerPage>
Expand Down Expand Up @@ -63,7 +64,7 @@ const AccountSetting: FC<Props> = ({
appearance="secondary"
icon="pencilSimple"
onClick={() => {
setPasswordModalClosed(false);
setChangePasswordModal(true);
}}
size="medium"
hasBorder={true}
Expand All @@ -75,9 +76,9 @@ const AccountSetting: FC<Props> = ({
</SettingsWrapper>

<PasswordModal
isVisible={!passwordModalClosed}
isVisible={changePasswordModal}
passwordPolicy={passwordPolicy}
onClose={() => setPasswordModalClosed(true)}
onClose={() => setChangePasswordModal(false)}
onPasswordUpdate={onUpdateUserPassword}
/>
</InnerPage>
Expand Down

0 comments on commit 528ac02

Please sign in to comment.