summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/pages/Authentication.tsx
diff options
context:
space:
mode:
authorLiang Yi <[email protected]>2022-09-21 04:50:18 +0800
committerGitHub <[email protected]>2022-09-21 04:50:18 +0800
commita0f8d75f0442f9d1f8f2f7dfc631714f31529381 (patch)
treed5495530487a691c12608cc9961b5728379815b3 /frontend/src/pages/Authentication.tsx
parent978b378683d46e074e8f56ba860ae16fe68b7cdd (diff)
downloadbazarr-a0f8d75f0442f9d1f8f2f7dfc631714f31529381.tar.gz
bazarr-a0f8d75f0442f9d1f8f2f7dfc631714f31529381.zip
Upgrade Mantine to Version 5 (#1930)
* Upgrade Mantine to v5.2.3 * Remove react-dropzone and replace with latest @mantine/dropzone * Fix issues
Diffstat (limited to 'frontend/src/pages/Authentication.tsx')
-rw-r--r--frontend/src/pages/Authentication.tsx8
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"