add password toggle icon for all password inputs & use share folder checkbox for remember password in login page.

This commit is contained in:
2026-07-10 19:04:10 +03:30
parent 4c3aea2b5c
commit 65cd548a9a
11 changed files with 113 additions and 14 deletions

View File

@@ -103,6 +103,11 @@ export default function AccountSettingsPage() {
}
};
const passwordToggleLabels = {
show: tAuth('showPassword'),
hide: tAuth('hidePassword'),
};
if (!isAuthReady || !user) {
return (
<p className="text-text-secondary text-sm">{tCommon('loadingEllipsis')}</p>
@@ -139,6 +144,7 @@ export default function AccountSettingsPage() {
placeholder={tAuth('passwordPlaceholder')}
error={errors.currentPassword?.message}
icon={<Lock className="h-5 w-5 icon-flat" />}
passwordToggleLabels={passwordToggleLabels}
/>
)}
@@ -149,6 +155,7 @@ export default function AccountSettingsPage() {
placeholder={tAuth('passwordPlaceholder')}
error={errors.newPassword?.message}
icon={<Lock className="h-5 w-5 icon-flat" />}
passwordToggleLabels={passwordToggleLabels}
/>
<Input
@@ -158,6 +165,7 @@ export default function AccountSettingsPage() {
placeholder={tAuth('passwordPlaceholder')}
error={errors.confirmPassword?.message}
icon={<Lock className="h-5 w-5 icon-flat" />}
passwordToggleLabels={passwordToggleLabels}
/>
{error && (