diff --git a/src/components/Profile/PasswordChangeForm.tsx b/src/components/Profile/PasswordChangeForm.tsx index 522974c1..cd3e9d2e 100644 --- a/src/components/Profile/PasswordChangeForm.tsx +++ b/src/components/Profile/PasswordChangeForm.tsx @@ -60,6 +60,11 @@ export const PasswordChangeDialog: FC = ({open, close submitFormData(data) } + const onClose = () => { + reset() + close() + } + const requiredRule = {required: '* Toto pole nemôže byť prázdne.'} return ( @@ -104,9 +109,12 @@ export const PasswordChangeDialog: FC = ({open, close } actions={ - + <> + + + } /> ) diff --git a/src/components/Profile/ProfileForm.tsx b/src/components/Profile/ProfileForm.tsx index de004b03..cd636cce 100644 --- a/src/components/Profile/ProfileForm.tsx +++ b/src/components/Profile/ProfileForm.tsx @@ -1,3 +1,4 @@ +import {Stack, Typography} from '@mui/material' import {useMutation, useQuery} from '@tanstack/react-query' import axios from 'axios' import {useRouter} from 'next/router' @@ -96,6 +97,10 @@ export const ProfileForm: FC = () => { submitFormData(data) } + const returnBack = () => { + router.push(`/${seminar}/profil`) + } + const requiredRule = {required: '* Toto pole nemôže byť prázdne.'} const phoneRule = { validate: (val?: string) => { @@ -112,9 +117,14 @@ export const ProfileForm: FC = () => {

* takto označéné polia sú povinné

- + + + + )