diff --git a/apps/nextjs/src/app/[locale]/manage/users/[userId]/_components/profile.accordion.tsx b/apps/nextjs/src/app/[locale]/manage/users/[userId]/_components/profile.accordion.tsx index 2dbb52208..391725c4c 100644 --- a/apps/nextjs/src/app/[locale]/manage/users/[userId]/_components/profile.accordion.tsx +++ b/apps/nextjs/src/app/[locale]/manage/users/[userId]/_components/profile.accordion.tsx @@ -20,30 +20,25 @@ interface ProfileAccordionProps { export const ProfileAccordion = ({ user }: ProfileAccordionProps) => { const t = useI18n(); - const { mutate, isPending } = - clientApi.user.editProfile.useMutation({ - onError(error) { - showErrorNotification({ - title: t( - "management.page.user.edit.section.profile.editProfile.title", - ), - message: error.message, - }); - }, - onSuccess: () => { - showSuccessNotification({ - title: t( - "management.page.user.edit.section.profile.editProfile.title", - ), - message: t( - "management.page.user.edit.section.profile.editProfile.message.profileUpdated", - ), - }); - }, - onSettled: async () => { - await revalidatePathAction("/manage/users"); - }, - }); + const { mutate, isPending } = clientApi.user.editProfile.useMutation({ + onError(error) { + showErrorNotification({ + title: t("management.page.user.edit.section.profile.editProfile.title"), + message: error.message, + }); + }, + onSuccess: () => { + showSuccessNotification({ + title: t("management.page.user.edit.section.profile.editProfile.title"), + message: t( + "management.page.user.edit.section.profile.editProfile.message.profileUpdated", + ), + }); + }, + onSettled: async () => { + await revalidatePathAction("/manage/users"); + }, + }); const form = useForm({ initialValues: { name: user.name ?? "", diff --git a/apps/nextjs/src/app/[locale]/manage/users/create/_components/create-user-stepper.tsx b/apps/nextjs/src/app/[locale]/manage/users/create/_components/create-user-stepper.tsx index 0d11f01f4..e35b1ae1b 100644 --- a/apps/nextjs/src/app/[locale]/manage/users/create/_components/create-user-stepper.tsx +++ b/apps/nextjs/src/app/[locale]/manage/users/create/_components/create-user-stepper.tsx @@ -1,5 +1,6 @@ "use client"; +import { useCallback, useMemo, useState } from "react"; import { Avatar, Card, @@ -11,7 +12,6 @@ import { Title, } from "@mantine/core"; import { IconUserCheck } from "@tabler/icons-react"; -import { useCallback, useMemo, useState } from "react"; import { clientApi } from "@homarr/api/client"; import { useForm, zodResolver } from "@homarr/form";