From f705449f1a53e1b9d5e7a539aa9cfd54ad8b39a7 Mon Sep 17 00:00:00 2001 From: matushl Date: Mon, 13 Nov 2023 21:32:07 +0100 Subject: [PATCH] Fix some eslint warnings --- src/components/Problems/Problems.tsx | 1 - src/components/Problems/UploadProblemForm.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Problems/Problems.tsx b/src/components/Problems/Problems.tsx index 58362309..ddab8cd1 100644 --- a/src/components/Problems/Problems.tsx +++ b/src/components/Problems/Problems.tsx @@ -1,6 +1,5 @@ import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query' import axios from 'axios' -import {DateTime} from 'luxon' import {useRouter} from 'next/router' import {FC, useEffect, useState} from 'react' diff --git a/src/components/Problems/UploadProblemForm.tsx b/src/components/Problems/UploadProblemForm.tsx index 817f9929..98cbc0d5 100644 --- a/src/components/Problems/UploadProblemForm.tsx +++ b/src/components/Problems/UploadProblemForm.tsx @@ -42,7 +42,7 @@ export const UploadProblemForm: FC<{ }) const [files, setFiles] = useState(undefined) - const {acceptedFiles, fileRejections, getRootProps, getInputProps} = useDropzone({ + const {getRootProps, getInputProps} = useDropzone({ multiple: false, accept: { 'application/pdf': ['.pdf'],