2026-02-07 00:49:49 +00:00
|
|
|
import { Stack } from "@mui/material";
|
|
|
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
|
import { ConfigBox } from "@/Components/v2/design-elements";
|
|
|
|
|
import { TextField, Button } from "@/Components/v2/inputs";
|
|
|
|
|
import { ImageUpload } from "@/Components/v2/inputs";
|
|
|
|
|
|
|
|
|
|
export const TabProfile = () => {
|
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Stack gap={4}>
|
|
|
|
|
<ConfigBox
|
2026-02-07 00:51:04 +00:00
|
|
|
title={t("pages.account.form.name.title")}
|
|
|
|
|
subtitle={t("pages.account.form.name.description")}
|
2026-02-07 00:49:49 +00:00
|
|
|
rightContent={
|
|
|
|
|
<Stack gap={3}>
|
|
|
|
|
<TextField
|
2026-02-07 00:51:04 +00:00
|
|
|
fieldLabel={t("pages.account.form.name.option.firstName.label")}
|
|
|
|
|
placeholder={t("pages.account.form.name.option.firstName.placeholder")}
|
2026-02-07 00:49:49 +00:00
|
|
|
autoComplete="given-name"
|
|
|
|
|
/>
|
|
|
|
|
<TextField
|
2026-02-07 00:51:04 +00:00
|
|
|
fieldLabel={t("pages.account.form.name.option.lastName.label")}
|
|
|
|
|
placeholder={t("pages.account.form.name.option.lastName.placeholder")}
|
2026-02-07 00:49:49 +00:00
|
|
|
autoComplete="family-name"
|
|
|
|
|
/>
|
|
|
|
|
</Stack>
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
<ConfigBox
|
2026-02-07 00:51:04 +00:00
|
|
|
title={t("pages.account.form.photo.title")}
|
|
|
|
|
subtitle={t("pages.account.form.photo.description")}
|
2026-02-07 00:49:49 +00:00
|
|
|
rightContent={<ImageUpload />}
|
|
|
|
|
/>
|
|
|
|
|
<Button
|
|
|
|
|
variant="contained"
|
|
|
|
|
color="primary"
|
|
|
|
|
sx={{ alignSelf: "flex-end" }}
|
|
|
|
|
>
|
|
|
|
|
{t("common.buttons.save")}
|
|
|
|
|
</Button>
|
|
|
|
|
</Stack>
|
|
|
|
|
);
|
|
|
|
|
};
|