Skip to content

Commit

Permalink
LoginForm close dialog also on the registration page
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmasrna1 committed Nov 24, 2024
1 parent c3f340b commit f4a13db
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/PageLayout/LoginForm/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,16 @@ export const LoginForm: FC<LoginFormProps> = ({closeDialog}) => {
</Box>
</Stack>
<Stack direction={'row'} mt={3} gap={2} justifyContent="space-between">
<Link variant="button2" href={`/${seminar}/registracia`}>
<Button
variant="button2"
type="button"
onClick={() => {
closeDialog() // We want to force th dialog to close also on the registration page
router.push(`/${seminar}/registracia`)
}}
>
Registrovať sa
</Link>
</Button>
<Button variant="button2" type="submit">
Prihlásiť sa
</Button>
Expand Down

0 comments on commit f4a13db

Please sign in to comment.