diff options
Diffstat (limited to 'frontend/src/pages/Authentication.tsx')
-rw-r--r-- | frontend/src/pages/Authentication.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/frontend/src/pages/Authentication.tsx b/frontend/src/pages/Authentication.tsx index b527c14dd..d4266111c 100644 --- a/frontend/src/pages/Authentication.tsx +++ b/frontend/src/pages/Authentication.tsx @@ -10,7 +10,7 @@ import { Stack, TextInput, } from "@mantine/core"; -import { useForm } from "@mantine/hooks"; +import { useForm } from "@mantine/form"; import { FunctionComponent } from "react"; const Authentication: FunctionComponent = () => { @@ -33,7 +33,11 @@ const Authentication: FunctionComponent = () => { src={`${Environment.baseUrl}/images/logo128.png`} ></Avatar> <Divider></Divider> - <form onSubmit={form.onSubmit(login)}> + <form + onSubmit={form.onSubmit((values) => { + login(values); + })} + > <Stack> <TextInput placeholder="Username" |