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'],