diff --git a/src/components/FormItems/Form.module.scss b/src/components/FormItems/Form.module.scss deleted file mode 100644 index cca36964..00000000 --- a/src/components/FormItems/Form.module.scss +++ /dev/null @@ -1,9 +0,0 @@ -.form { - display: grid; - gap: 1rem 0; - - >button { //TODO: remove - font-size: 1.2rem; - justify-self: center; - } -} \ No newline at end of file diff --git a/src/components/FormItems/Form.module.scss.d.ts b/src/components/FormItems/Form.module.scss.d.ts deleted file mode 100644 index b3050633..00000000 --- a/src/components/FormItems/Form.module.scss.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export type Styles = { - form: string -} - -export type ClassNames = keyof Styles - -declare const styles: Styles - -export default styles diff --git a/src/components/PageLayout/LoginForm/LoginForm.tsx b/src/components/PageLayout/LoginForm/LoginForm.tsx index c4ab90eb..743c86ec 100644 --- a/src/components/PageLayout/LoginForm/LoginForm.tsx +++ b/src/components/PageLayout/LoginForm/LoginForm.tsx @@ -1,8 +1,8 @@ +import {Stack} from '@mui/material' import {FC} from 'react' import {SubmitHandler, useForm} from 'react-hook-form' import {Button} from '@/components/Clickable/Button' -import styles from '@/components/FormItems/Form.module.scss' import {FormInput} from '@/components/FormItems/FormInput/FormInput' import {AuthContainer} from '@/utils/AuthContainer' @@ -31,21 +31,27 @@ export const LoginForm: FC = ({closeOverlay}) => { const requiredRule = {required: '* Toto pole nemôže byť prázdne.'} return ( -
- - - + + + + + + + + ) } diff --git a/src/components/Problems/Discussion.tsx b/src/components/Problems/Discussion.tsx index 762a714e..8305727e 100644 --- a/src/components/Problems/Discussion.tsx +++ b/src/components/Problems/Discussion.tsx @@ -109,14 +109,14 @@ export const Discussion: FC = ({problemId, problemNumber, close title="Vymazať komentár?" contentText="Komentár bude nenávratne vymazaný." actions={ - <> + - + } /> diff --git a/src/components/Problems/UploadProblemForm.tsx b/src/components/Problems/UploadProblemForm.tsx index 3e48c98d..8411abb1 100644 --- a/src/components/Problems/UploadProblemForm.tsx +++ b/src/components/Problems/UploadProblemForm.tsx @@ -1,3 +1,4 @@ +import {Stack} from '@mui/material' import {useMutation} from '@tanstack/react-query' import axios from 'axios' import {Dispatch, FC, SetStateAction, useState} from 'react' @@ -95,14 +96,14 @@ export const UploadProblemForm: FC<{ title="Pozor" contentText={alertMessage} actions={ - <> + - + } />
diff --git a/src/components/Profile/PasswordChangeForm.tsx b/src/components/Profile/PasswordChangeForm.tsx index 342f5676..f32302db 100644 --- a/src/components/Profile/PasswordChangeForm.tsx +++ b/src/components/Profile/PasswordChangeForm.tsx @@ -1,9 +1,9 @@ +import {Stack} from '@mui/material' import {useMutation} from '@tanstack/react-query' import axios, {AxiosError} from 'axios' import {FC} from 'react' import {SubmitHandler, useForm} from 'react-hook-form' -import styles from '@/components/FormItems/Form.module.scss' import {IGeneralPostResponse} from '@/types/api/general' import {Button} from '../Clickable/Button' @@ -73,48 +73,50 @@ export const PasswordChangeDialog: FC = ({open, close close={close} title="Zmena hesla" contentText={ -
- - - { - if (val !== getValues().new_password1) return '* Zadané heslá sa nezhodujú.' - }, - }} - /> + + + + + { + if (val !== getValues().new_password1) return '* Zadané heslá sa nezhodujú.' + }, + }} + /> + } actions={ - <> + - + } /> ) diff --git a/src/components/Profile/ProfileForm.tsx b/src/components/Profile/ProfileForm.tsx index 4af829b3..d89e35d5 100644 --- a/src/components/Profile/ProfileForm.tsx +++ b/src/components/Profile/ProfileForm.tsx @@ -112,7 +112,7 @@ export const ProfileForm: FC = () => { - +

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

diff --git a/src/components/RegisterForm/RegisterForm.tsx b/src/components/RegisterForm/RegisterForm.tsx index 2617d2d5..324bee4b 100644 --- a/src/components/RegisterForm/RegisterForm.tsx +++ b/src/components/RegisterForm/RegisterForm.tsx @@ -1,10 +1,10 @@ +import {Stack, Typography} from '@mui/material' import {useMutation} from '@tanstack/react-query' import axios, {AxiosError} from 'axios' import {useRouter} from 'next/router' import {FC} from 'react' import {SubmitHandler, useForm} from 'react-hook-form' -import styles from '@/components/FormItems/Form.module.scss' import {FormInput} from '@/components/FormItems/FormInput/FormInput' import {IGeneralPostResponse} from '@/types/api/general' import {useSeminarInfo} from '@/utils/useSeminarInfo' @@ -102,8 +102,8 @@ export const RegisterForm: FC = () => { }, } return ( -
-
+ + { /> - + -

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

-

+ + * takto označéné polia sú povinné + + Vyplnením a odoslaním registrácie beriem na vedomie, že moje osobné údaje budú spracované v súlade so zákonom o ochrane osobných údajov. Bližšie informácie nájdete tu. -

- - -
+ + + + +
+ ) } diff --git a/src/components/SchoolSubForm/SchoolSubForm.tsx b/src/components/SchoolSubForm/SchoolSubForm.tsx index 62d817e4..8baa92bc 100644 --- a/src/components/SchoolSubForm/SchoolSubForm.tsx +++ b/src/components/SchoolSubForm/SchoolSubForm.tsx @@ -1,10 +1,10 @@ +import {Stack} from '@mui/material' import {useQuery} from '@tanstack/react-query' import axios from 'axios' import {useRef} from 'react' import {Control, UseFormSetValue, UseFormWatch} from 'react-hook-form' import {useUpdateEffect} from 'usehooks-ts' -import styles from '@/components/FormItems/Form.module.scss' import {IGrade} from '@/types/api/competition' import {ISchool} from '@/types/api/personal' @@ -25,9 +25,10 @@ type SchoolSubFormProps = { control: Control watch: UseFormWatch setValue: UseFormSetValue + spacing: number } -export const SchoolSubForm = ({control, watch, setValue}: SchoolSubFormProps) => { +export const SchoolSubForm = ({control, watch, setValue, spacing}: SchoolSubFormProps) => { const [school_not_found, without_school] = watch(['school_not_found', 'without_school']) const otherSchoolItem = useRef() @@ -80,7 +81,7 @@ export const SchoolSubForm = ({control, watch, setValue}: SchoolSubFormProps + -
+
) }