diff --git a/frontend/src/components/admin/configuration/ConfigurationNavBar.tsx b/frontend/src/components/admin/configuration/ConfigurationNavBar.tsx index f2bece58..060d513e 100644 --- a/frontend/src/components/admin/configuration/ConfigurationNavBar.tsx +++ b/frontend/src/components/admin/configuration/ConfigurationNavBar.tsx @@ -13,7 +13,6 @@ import Link from "next/link"; import { Dispatch, SetStateAction } from "react"; import { TbAt, TbMail, TbShare, TbSocial, TbSquare } from "react-icons/tb"; import { FormattedMessage } from "react-intl"; -import useConfig from "../../../hooks/config.hook"; const webroot = process.env.WEBROOT || ""; @@ -49,7 +48,6 @@ const ConfigurationNavBar = ({ setIsMobileNavBarOpened: Dispatch>; }) => { const { classes } = useStyles(); - const config = useConfig(); return ( { const { user } = useUser(); - const config = useConfig(); return ( diff --git a/frontend/src/components/header/NavbarShareMenu.tsx b/frontend/src/components/header/NavbarShareMenu.tsx index 9a70efeb..b29d7e5a 100644 --- a/frontend/src/components/header/NavbarShareMenu.tsx +++ b/frontend/src/components/header/NavbarShareMenu.tsx @@ -2,12 +2,10 @@ import { ActionIcon, Menu } from "@mantine/core"; import Link from "next/link"; import { TbArrowLoopLeft, TbLink } from "react-icons/tb"; import { FormattedMessage } from "react-intl"; -import useConfig from "../../hooks/config.hook"; const webroot = process.env.WEBROOT || ""; const NavbarShareMneu = () => { - const config = useConfig(); return ( diff --git a/frontend/src/components/share/FilePreview.tsx b/frontend/src/components/share/FilePreview.tsx index ee2af2ea..a27cef61 100644 --- a/frontend/src/components/share/FilePreview.tsx +++ b/frontend/src/components/share/FilePreview.tsx @@ -12,7 +12,6 @@ import React, { Dispatch, SetStateAction, useEffect, useState } from "react"; import { FormattedMessage } from "react-intl"; import api from "../../services/api.service"; import Markdown from "markdown-to-jsx"; -import useConfig from "../../hooks/config.hook"; const webroot = process.env.WEBROOT || ""; @@ -38,7 +37,6 @@ const FilePreview = ({ mimeType: string; }) => { const [isNotSupported, setIsNotSupported] = useState(false); - const config = useConfig(); if (isNotSupported) return ; return ( diff --git a/frontend/src/pages/404.tsx b/frontend/src/pages/404.tsx index df10c1aa..65af037e 100644 --- a/frontend/src/pages/404.tsx +++ b/frontend/src/pages/404.tsx @@ -9,7 +9,6 @@ import { import Link from "next/link"; import Meta from "../components/Meta"; import { FormattedMessage } from "react-intl"; -import useConfig from "../hooks/config.hook"; const webroot = process.env.WEBROOT || ""; diff --git a/frontend/src/pages/admin/intro.tsx b/frontend/src/pages/admin/intro.tsx index 2c71c077..4554fdf3 100644 --- a/frontend/src/pages/admin/intro.tsx +++ b/frontend/src/pages/admin/intro.tsx @@ -10,7 +10,6 @@ import { import Link from "next/link"; import Logo from "../../components/Logo"; import Meta from "../../components/Meta"; -import useConfig from "../../hooks/config.hook"; const webroot = process.env.WEBROOT || ""; diff --git a/frontend/src/pages/auth/resetPassword/index.tsx b/frontend/src/pages/auth/resetPassword/index.tsx index 21f4bf29..e61ffda8 100644 --- a/frontend/src/pages/auth/resetPassword/index.tsx +++ b/frontend/src/pages/auth/resetPassword/index.tsx @@ -20,7 +20,6 @@ import * as yup from "yup"; import useTranslate from "../../../hooks/useTranslate.hook"; import authService from "../../../services/auth.service"; import toast from "../../../utils/toast.util"; -import useConfig from "../../../hooks/config.hook"; const webroot = process.env.WEBROOT || ""; diff --git a/frontend/src/pages/index.tsx b/frontend/src/pages/index.tsx index f0482d26..64e74c2c 100644 --- a/frontend/src/pages/index.tsx +++ b/frontend/src/pages/index.tsx @@ -16,7 +16,6 @@ import { FormattedMessage } from "react-intl"; import Logo from "../components/Logo"; import Meta from "../components/Meta"; import useUser from "../hooks/user.hook"; -import useConfig from "../hooks/config.hook"; const webroot = process.env.WEBROOT || "";