diff --git a/.hygen/generate/resource/create/page-content.ejs.t b/.hygen/generate/resource/create/page-content.ejs.t index c72357c5..1f196b05 100644 --- a/.hygen/generate/resource/create/page-content.ejs.t +++ b/.hygen/generate/resource/create/page-content.ejs.t @@ -6,7 +6,7 @@ to: src/app/[language]/admin-panel/<%= h.inflection.transform(name, ['pluralize' import Button from "@mui/material/Button"; import { useForm, FormProvider, useFormState } from "react-hook-form"; import Container from "@mui/material/Container"; -import Grid from "@mui/material/Grid"; +import Grid from "@mui/material/Grid2"; import Typography from "@mui/material/Typography"; import FormTextInput from "@/components/form/text-input/form-text-input"; import * as yup from "yup"; diff --git a/.hygen/generate/resource/page-content.ejs.t b/.hygen/generate/resource/page-content.ejs.t index 297f32ac..16047981 100644 --- a/.hygen/generate/resource/page-content.ejs.t +++ b/.hygen/generate/resource/page-content.ejs.t @@ -7,7 +7,7 @@ import { RoleEnum } from "@/services/api/types/role"; import withPageRequiredAuth from "@/services/auth/with-page-required-auth"; import { useTranslation } from "@/services/i18n/client"; import Container from "@mui/material/Container"; -import Grid from "@mui/material/Grid"; +import Grid from "@mui/material/Grid2"; import Typography from "@mui/material/Typography"; import { useCallback, useMemo, useRef, useState } from "react"; import { useGet<%= h.inflection.transform(name, ['pluralize']) %>Query, <%= h.inflection.camelize(h.inflection.pluralize(name), true) %>QueryKeys } from "./queries/queries"; @@ -190,12 +190,12 @@ function <%= h.inflection.transform(name, ['pluralize']) %>() { return ( - - + + {t("title")} - - + + diff --git a/src/app/[language]/confirm-email/page-content.tsx b/src/app/[language]/confirm-email/page-content.tsx index 99b90b5e..67dbd75b 100644 --- a/src/app/[language]/confirm-email/page-content.tsx +++ b/src/app/[language]/confirm-email/page-content.tsx @@ -7,7 +7,7 @@ import { useAuthConfirmEmailService } from "@/services/api/services/auth"; import { useRouter } from "next/navigation"; import { useSnackbar } from "notistack"; import Container from "@mui/material/Container"; -import Grid from "@mui/material/Grid"; +import Grid from "@mui/material/Grid2"; import HTTP_CODES_ENUM from "@/services/api/types/http-codes"; import { useTranslation } from "@/services/i18n/client"; @@ -47,7 +47,7 @@ export default function ConfirmEmail() { return ( - + - + - + {t("forgot-password:title")} - + name="email" label={t("forgot-password:inputs.email.label")} @@ -102,7 +102,7 @@ function Form() { /> - + diff --git a/src/app/[language]/page.tsx b/src/app/[language]/page.tsx index 7ad715fe..0c4a1971 100644 --- a/src/app/[language]/page.tsx +++ b/src/app/[language]/page.tsx @@ -1,7 +1,7 @@ import type { Metadata } from "next"; import { getServerTranslation } from "@/services/i18n"; import Container from "@mui/material/Container"; -import Grid from "@mui/material/Grid"; +import Grid from "@mui/material/Grid2"; import Typography from "@mui/material/Typography"; import MuiLink from "@mui/material/Link"; import { Trans } from "react-i18next/TransWithoutContext"; @@ -31,7 +31,7 @@ export default async function Home({ params }: Props) { direction="column" sx={{ height: "90vh", justifyContent: "space-between" }} > - + {t("title")} @@ -52,7 +52,7 @@ export default async function Home({ params }: Props) { /> - + Privacy Policy diff --git a/src/app/[language]/password-change/page-content.tsx b/src/app/[language]/password-change/page-content.tsx index ade6eca4..8b1788bd 100644 --- a/src/app/[language]/password-change/page-content.tsx +++ b/src/app/[language]/password-change/page-content.tsx @@ -4,7 +4,7 @@ import withPageRequiredGuest from "@/services/auth/with-page-required-guest"; import { useForm, FormProvider, useFormState } from "react-hook-form"; import { useAuthResetPasswordService } from "@/services/api/services/auth"; import Container from "@mui/material/Container"; -import Grid from "@mui/material/Grid"; +import Grid from "@mui/material/Grid2"; import Typography from "@mui/material/Typography"; import FormTextInput from "@/components/form/text-input/form-text-input"; import * as yup from "yup"; @@ -85,7 +85,7 @@ function ExpiresAlert() { return ( isExpired && ( - + {t("password-change:alerts.expired")} @@ -150,11 +150,11 @@ function Form() { - + {t("password-change:title")} - + name="password" label={t("password-change:inputs.password.label")} @@ -162,7 +162,7 @@ function Form() { testId="password" /> - + name="passwordConfirmation" label={t("password-change:inputs.passwordConfirmation.label")} @@ -171,7 +171,7 @@ function Form() { /> - + diff --git a/src/app/[language]/profile/edit/page-content.tsx b/src/app/[language]/profile/edit/page-content.tsx index a22992f4..de66a941 100644 --- a/src/app/[language]/profile/edit/page-content.tsx +++ b/src/app/[language]/profile/edit/page-content.tsx @@ -4,7 +4,7 @@ import { useForm, FormProvider, useFormState } from "react-hook-form"; import { useAuthPatchMeService } from "@/services/api/services/auth"; import useAuthActions from "@/services/auth/use-auth-actions"; import Container from "@mui/material/Container"; -import Grid from "@mui/material/Grid"; +import Grid from "@mui/material/Grid2"; import Typography from "@mui/material/Typography"; import FormTextInput from "@/components/form/text-input/form-text-input"; import * as yup from "yup"; @@ -210,17 +210,17 @@ function FormBasicInfo() { - + {t("profile:title1")} - + name="photo" testId="photo" /> - + name="firstName" label={t("profile:inputs.firstName.label")} @@ -228,7 +228,7 @@ function FormBasicInfo() { /> - + name="lastName" label={t("profile:inputs.lastName.label")} @@ -236,7 +236,7 @@ function FormBasicInfo() { /> - +