diff --git a/src/App.tsx b/src/App.tsx index abbac9e..af1024d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -542,7 +542,7 @@ export default function App() { return; } if (changeNewPassword !== changeConfirmPassword) { - setChangePasswordError('New passwords do not match.'); + setChangePasswordError('Confirm password do not match.'); return; } diff --git a/src/components/auth/ProfileDrawer.tsx b/src/components/auth/ProfileDrawer.tsx index b243f48..7f5a870 100644 --- a/src/components/auth/ProfileDrawer.tsx +++ b/src/components/auth/ProfileDrawer.tsx @@ -77,6 +77,7 @@ export const ProfileDrawer: React.FC = ({ }) => { const [showOldPassword, setShowOldPassword] = useState(false); const [showNewPassword, setShowNewPassword] = useState(false); + const [showConfirmPassword, setShowConfirmPassword] = useState(false); const parsed = parsePhoneNumber(profilePhone, profileCountry); const [dialCode, setDialCode] = useState(parsed.dialCode); @@ -300,14 +301,23 @@ export const ProfileDrawer: React.FC = ({
- setChangeConfirmPassword(e.target.value)} - placeholder="Repeat new password" - className="w-full bg-white border border-slate-200 rounded-xl px-3 py-2 text-xs font-semibold text-slate-800 focus:outline-none focus:border-indigo-500" - /> +
+ setChangeConfirmPassword(e.target.value)} + placeholder="Repeat new password" + className="w-full bg-white border border-slate-200 rounded-xl px-3 py-2 pr-10 text-xs font-semibold text-slate-800 focus:outline-none focus:border-indigo-500" + /> + +