From 7c0c986564845ddf4348d0959c978fbdca422033 Mon Sep 17 00:00:00 2001 From: ajnart Date: Tue, 2 Aug 2022 05:22:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=83=F0=9F=8F=BB=20Styling=20and=20fixi?= =?UTF-8?q?ng=20lint=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login.tsx | 2 +- src/tools/styles.ts | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/pages/login.tsx b/src/pages/login.tsx index 04bb33c6c..d6df4d33c 100644 --- a/src/pages/login.tsx +++ b/src/pages/login.tsx @@ -1,11 +1,11 @@ import React from 'react'; import { PasswordInput, Anchor, Paper, Title, Text, Container, Group, Button } from '@mantine/core'; import { setCookie } from 'cookies-next'; -import { useForm } from '@mantine/hooks'; import { showNotification, updateNotification } from '@mantine/notifications'; import axios from 'axios'; import { IconCheck, IconX } from '@tabler/icons'; import { useRouter } from 'next/router'; +import { useForm } from '@mantine/form'; // TODO: Add links to the wiki articles about the login process. export default function AuthenticationTitle() { diff --git a/src/tools/styles.ts b/src/tools/styles.ts index 905d6903c..089a92727 100644 --- a/src/tools/styles.ts +++ b/src/tools/styles.ts @@ -1,12 +1,13 @@ import { MantineProviderProps } from '@mantine/core'; -export const styles: MantineProviderProps['styles'] = { - Checkbox: { - input: { cursor: 'pointer' }, - label: { cursor: 'pointer' }, - }, - Switch: { - input: { cursor: 'pointer' }, - label: { cursor: 'pointer' }, - }, -}; +//TODO: Migarate this to v5.0 +// export const styles: MantineProviderProps['styles'] = { +// Checkbox: { +// input: { cursor: 'pointer' }, +// label: { cursor: 'pointer' }, +// }, +// Switch: { +// input: { cursor: 'pointer' }, +// label: { cursor: 'pointer' }, +// }, +// };