From 5b7d99f9d68372bb0334c01c8e8703ece65b5870 Mon Sep 17 00:00:00 2001 From: gluzzati Date: Fri, 22 Mar 2024 00:24:32 +0000 Subject: [PATCH] removed unused; --- frontend/src/pages/404.tsx | 1 - frontend/src/pages/admin/intro.tsx | 1 - frontend/src/pages/auth/resetPassword/index.tsx | 1 - frontend/src/pages/index.tsx | 1 - 4 files changed, 4 deletions(-) diff --git a/frontend/src/pages/404.tsx b/frontend/src/pages/404.tsx index 6146172..df10c1a 100644 --- a/frontend/src/pages/404.tsx +++ b/frontend/src/pages/404.tsx @@ -41,7 +41,6 @@ const useStyles = createStyles((theme) => ({ const ErrorNotFound = () => { const { classes } = useStyles(); - const config = useConfig(); return ( <> diff --git a/frontend/src/pages/admin/intro.tsx b/frontend/src/pages/admin/intro.tsx index 29a8284..2c71c07 100644 --- a/frontend/src/pages/admin/intro.tsx +++ b/frontend/src/pages/admin/intro.tsx @@ -15,7 +15,6 @@ import useConfig from "../../hooks/config.hook"; const webroot = process.env.WEBROOT || ""; const Intro = () => { - const config = useConfig(); return ( <> diff --git a/frontend/src/pages/auth/resetPassword/index.tsx b/frontend/src/pages/auth/resetPassword/index.tsx index c7d938e..21f4bf2 100644 --- a/frontend/src/pages/auth/resetPassword/index.tsx +++ b/frontend/src/pages/auth/resetPassword/index.tsx @@ -64,7 +64,6 @@ const ResetPassword = () => { ), }); - const config = useConfig(); return ( diff --git a/frontend/src/pages/index.tsx b/frontend/src/pages/index.tsx index 28d64ae..f0482d2 100644 --- a/frontend/src/pages/index.tsx +++ b/frontend/src/pages/index.tsx @@ -76,7 +76,6 @@ export default function Home() { const { classes } = useStyles(); const { refreshUser } = useUser(); const router = useRouter(); - const config = useConfig(); // If the user is already logged in, redirect to the upload page useEffect(() => {