add password toggle icon for all password inputs & use share folder checkbox for remember password in login page.
This commit is contained in:
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user