- {/* @ts-ignore */}
- {expireText(new Date(invite.expiresAt))}
+ {expireText(invite.expiresAt.toString())}
diff --git a/src/components/pages/Manage/Flameshot.tsx b/src/components/pages/Manage/Flameshot.tsx
index ec9c52e..79c678e 100644
--- a/src/components/pages/Manage/Flameshot.tsx
+++ b/src/components/pages/Manage/Flameshot.tsx
@@ -1,6 +1,5 @@
-import { Anchor, Code } from '@mantine/core';
+import { Code } from '@mantine/core';
import AnchorNext from 'components/AnchorNext';
-import Link from 'next/link';
import { GeneratorModal } from './GeneratorModal';
export default function Flameshot({ user, open, setOpen }) {
diff --git a/src/components/pages/Manage/GeneratorModal.tsx b/src/components/pages/Manage/GeneratorModal.tsx
index 8a2e520..3135b73 100644
--- a/src/components/pages/Manage/GeneratorModal.tsx
+++ b/src/components/pages/Manage/GeneratorModal.tsx
@@ -1,5 +1,4 @@
import {
- Anchor,
Box,
Button,
Checkbox,
@@ -18,7 +17,6 @@ import { useForm } from '@mantine/form';
import { IconFileDownload, IconWorld } from '@tabler/icons-react';
import AnchorNext from 'components/AnchorNext';
import MutedText from 'components/MutedText';
-import Link from 'next/link';
import { useReducer, useState } from 'react';
const DEFAULT_OD_DESC = 'Override the default domain(s). Type in a URL, e.g https://example.com';
diff --git a/src/components/pages/Manage/ShareX.tsx b/src/components/pages/Manage/ShareX.tsx
index 52ea404..7bc21e4 100644
--- a/src/components/pages/Manage/ShareX.tsx
+++ b/src/components/pages/Manage/ShareX.tsx
@@ -1,4 +1,3 @@
-import { useReducer, useState } from 'react';
import { GeneratorModal } from './GeneratorModal';
export default function ShareX({ user, open, setOpen }) {
diff --git a/src/components/pages/Stats/Graphs.tsx b/src/components/pages/Stats/Graphs.tsx
index 1887663..9147159 100644
--- a/src/components/pages/Stats/Graphs.tsx
+++ b/src/components/pages/Stats/Graphs.tsx
@@ -2,7 +2,7 @@ import { Box, Card, Grid, LoadingOverlay, Title, useMantineTheme } from '@mantin
import { useStats } from 'lib/queries/stats';
import { bytesToHuman } from 'lib/utils/bytes';
-import { useEffect, useMemo, useState } from 'react';
+import { useMemo } from 'react';
import { CartesianGrid, Line, LineChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';
diff --git a/src/components/pages/Stats/Types.tsx b/src/components/pages/Stats/Types.tsx
index 5e67a41..d4602fd 100644
--- a/src/components/pages/Stats/Types.tsx
+++ b/src/components/pages/Stats/Types.tsx
@@ -3,7 +3,7 @@ import { Box, Card, Center, Grid, LoadingOverlay, Title, useMantineTheme } from
import { SmallTable } from 'components/SmallTable';
import { useStats } from 'lib/queries/stats';
import { colorHash } from 'lib/utils/client';
-import { useEffect, useMemo, useState } from 'react';
+import { useMemo } from 'react';
import { Pie, PieChart, ResponsiveContainer, Tooltip } from 'recharts';
diff --git a/src/components/pages/Upload/useUploadOptions.tsx b/src/components/pages/Upload/useUploadOptions.tsx
index ba98297..2256f54 100644
--- a/src/components/pages/Upload/useUploadOptions.tsx
+++ b/src/components/pages/Upload/useUploadOptions.tsx
@@ -11,7 +11,7 @@ import {
Title,
} from '@mantine/core';
import { IconAlarm, IconEye, IconFileInfo, IconKey, IconPhotoDown, IconWorld } from '@tabler/icons-react';
-import React, { Dispatch, SetStateAction, useReducer, useState } from 'react';
+import React, { Dispatch, ReactNode, SetStateAction, useReducer, useState } from 'react';
export type UploadOptionsState = {
expires: string;
@@ -37,7 +37,11 @@ export function OptionsModal({
opened: boolean;
setOpened: Dispatch