refactor: migrate to mantine v5

This commit is contained in:
Elias Schneider
2022-10-10 22:14:23 +02:00
parent 68ce8af197
commit db7edc4cd6
14 changed files with 1073 additions and 859 deletions

View File

@@ -1,4 +1,4 @@
import { Button, Group, PasswordInput, Text, Title } from "@mantine/core";
import { Button, Group, PasswordInput, Stack, Text, Title } from "@mantine/core";
import { ModalsContextProps } from "@mantine/modals/lib/context";
import { useState } from "react";
@@ -27,7 +27,7 @@ const Body = ({ submitCallback }: { submitCallback: any }) => {
const [passwordWrong, setPasswordWrong] = useState(false);
return (
<>
<Group grow direction="column">
<Stack align="stretch">
<PasswordInput
variant="filled"
placeholder="Password"
@@ -50,7 +50,7 @@ const Body = ({ submitCallback }: { submitCallback: any }) => {
>
Submit
</Button>
</Group>
</Stack>
</>
);
};