diff --git a/src/components/Alert/AlertBox.tsx b/src/components/Alert/AlertBox.tsx
index b3ad9685..beb47814 100644
--- a/src/components/Alert/AlertBox.tsx
+++ b/src/components/Alert/AlertBox.tsx
@@ -26,9 +26,9 @@ export const AlertBox: FC = () => {
contentText={container.alertBox?.message}
close={closeContainer}
>
-
-
-
- Archív
-
- {history_events.map((event) => (
-
-
- {name} {event.school_year}
-
-
- {event.publication_set.map((publication) => (
-
- {publication.name}
+
+ {history_events.map((event) => {
+ const results = event.publication_set.find((p) => p.publication_type === PublicationTypes.RESULTS.id)
+ const problems = event.publication_set.find((p) => p.publication_type === PublicationTypes.PROBLEMS.id)
+ return (
+
+
+
+ {name} {event.school_year}
+
+
+
+ {results && (
+
+ {results.name}
- ))}
-
-
- ))}
-
-
+ )}
+
+
+ {problems && (
+
+ {problems.name}
+
+ )}
+
+
+ )
+ })}
+
)
}
diff --git a/src/components/FormItems/FormInput/FormInput.tsx b/src/components/FormItems/FormInput/FormInput.tsx
index c0854ee9..3da0c239 100644
--- a/src/components/FormItems/FormInput/FormInput.tsx
+++ b/src/components/FormItems/FormInput/FormInput.tsx
@@ -12,6 +12,7 @@ export const FormInput = <
label,
type,
rules,
+ ...props
}: TextFieldProps &
Pick, 'name' | 'control' | 'rules'> & {
label: string
@@ -31,6 +32,7 @@ export const FormInput = <
helperText={error?.message}
focused={false}
sx={formItemStyle}
+ {...props}
/>
)}
/>
diff --git a/src/components/PageLayout/Banner/Banner.tsx b/src/components/PageLayout/Banner/Banner.tsx
index fe93778b..6c1dc63f 100644
--- a/src/components/PageLayout/Banner/Banner.tsx
+++ b/src/components/PageLayout/Banner/Banner.tsx
@@ -10,6 +10,11 @@ export const Banner: FC = () => {
const bannerTextFormatted =
bannerMessages.length > 0 ? Array(10).fill(bannerMessages).flat().join(divider) + divider : undefined
+
+ if (!bannerTextFormatted) {
+ return null
+ }
+
return (
{
>
diff --git a/src/components/PageLayout/LoginForm/LoginForm.tsx b/src/components/PageLayout/LoginForm/LoginForm.tsx
index bbfa5602..ddef9815 100644
--- a/src/components/PageLayout/LoginForm/LoginForm.tsx
+++ b/src/components/PageLayout/LoginForm/LoginForm.tsx
@@ -1,10 +1,10 @@
-import {Stack} from '@mui/material'
+import {Visibility, VisibilityOff} from '@mui/icons-material'
+import {Box, IconButton, Stack} from '@mui/material'
import {useRouter} from 'next/router'
import {FC, useState} from 'react'
import {SubmitHandler, useForm} from 'react-hook-form'
import {Button} from '@/components/Clickable/Button'
-import {Link} from '@/components/Clickable/Link'
import {Dialog} from '@/components/Dialog/Dialog'
import {FormInput} from '@/components/FormItems/FormInput/FormInput'
import {AuthContainer} from '@/utils/AuthContainer'
@@ -53,6 +53,8 @@ export const LoginForm: FC = ({closeDialog}) => {
setDisplayForgottenDialog((prev) => !prev)
}
+ const [showPassword, setShowPassword] = useState(false)
+
return (
<>