This commit is contained in:
Alex Holliday committed 2025-12-12 12:17:18 -08:00
1 parent c9dea5c0ae
commit 901b5a43c8
20 files changed
+393 -137

No files matched your search

+4 -2
View File
@@ -7,9 +7,11 @@ import type { ApiResponse } from "@/hooks/UseApi";
import { useGet, usePatch } from "@/hooks/UseApi";
import { z } from "zod";
import { profileSchema } from "@/validation/zod";
import { useTranslation } from "react-i18next";
type FormValues = z.infer<typeof profileSchema>;
const Profile = () => {
const { t } = useTranslation();
const [user, setUser] = useState<Partial<IUser> | null>(null);
const { response, loading } = useGet<ApiResponse<any>>(`/profile`, {}, {});
useEffect(() => {
@@ -32,8 +34,8 @@ const Profile = () => {
return (
<BasePage>
<InfoBox
title="View and edit your profile"
description="You can set your name and password here"
title={t("profile.infoBox.title")}
description={t("profile.infoBox.description")}
/>
<ProfileForm
user={user}