diff --git a/src/components/About.tsx b/src/components/About.tsx index 2756cdcb3e..396a356758 100644 --- a/src/components/About.tsx +++ b/src/components/About.tsx @@ -1,18 +1,15 @@ import { useEffect, useState } from "react"; -import Header from "./Header"; -import NavBar from "./NavBar"; -import Footer from "./Footer"; import { useTranslation } from "react-i18next"; import { useLocation } from "react-router"; import axios from "axios"; import i18n from "../i18n/i18n"; import DOMPurify from "dompurify"; +import MainPage from "./shared/MainPage"; const About = () => { const { t } = useTranslation(); const location = useLocation(); - const [displayNavigation, setNavigation] = useState(false); const [aboutContent, setAboutContent] = useState(""); useEffect(() => { @@ -35,34 +32,29 @@ const About = () => { setAboutContent(t("ABOUT.NOCONTENT").toString()); }); }); - // eslint-disable-next-line react-hooks/exhaustive-deps + // eslint-disable-next-line react-hooks/exhaustive-deps }, [location.pathname]); // Listen to changes in pathname + return ( - -
- - +
-