diff --git a/src/app/account/page.tsx b/src/app/account/page.tsx index ee534bb..b3b04cf 100644 --- a/src/app/account/page.tsx +++ b/src/app/account/page.tsx @@ -25,7 +25,7 @@ export default async function AccountPage() {
- +
diff --git a/src/components/account/ChangePasswordForm.tsx b/src/components/account/ChangePasswordForm.tsx index 9fe87ba..bc0aa37 100644 --- a/src/components/account/ChangePasswordForm.tsx +++ b/src/components/account/ChangePasswordForm.tsx @@ -9,7 +9,11 @@ import { useToast } from "@/components/ui/use-toast"; import { Lock } from "lucide-react"; import { changePassword } from "@/app/actions/password"; -export function ChangePasswordForm() { +interface ChangePasswordFormProps { + username?: string; +} + +export function ChangePasswordForm({ username }: ChangePasswordFormProps) { const [currentPassword, setCurrentPassword] = useState(""); const [newPassword, setNewPassword] = useState(""); const [confirmPassword, setConfirmPassword] = useState(""); @@ -77,13 +81,26 @@ export function ChangePasswordForm() {
+ +
setCurrentPassword(e.target.value)} className="pl-9" @@ -99,7 +116,9 @@ export function ChangePasswordForm() { setNewPassword(e.target.value)} className="pl-9" @@ -115,7 +134,9 @@ export function ChangePasswordForm() { setConfirmPassword(e.target.value)} className="pl-9" diff --git a/src/components/settings/ClientSettings.tsx b/src/components/settings/ClientSettings.tsx index bd00fe5..0648f61 100644 --- a/src/components/settings/ClientSettings.tsx +++ b/src/components/settings/ClientSettings.tsx @@ -20,32 +20,34 @@ export function ClientSettings({ initialConfig, initialLibraries }: ClientSettin const { t } = useTranslate(); return ( -
-

{t("settings.title")}

+
+
+

{t("settings.title")}

- - - - - {t("settings.tabs.display")} - - - - {t("settings.tabs.connection")} - - + + + + + {t("settings.tabs.display")} + + + + {t("settings.tabs.connection")} + + - - - - + + + + - - - - - - + + + + + + +
); }