diff --git a/src/components/layout/ApplicationBar.tsx b/src/components/layout/ApplicationBar.tsx index ed4a6f5..e9b3d4e 100644 --- a/src/components/layout/ApplicationBar.tsx +++ b/src/components/layout/ApplicationBar.tsx @@ -1,17 +1,9 @@ import { useState, useEffect } from "react"; -import { - Container, - Toolbar, - Menu, - MenuItem, - IconButton, - Typography, - AppBar, - Box -} from "@mui/material"; +import { Container, Toolbar, Menu, MenuItem, IconButton, Typography, AppBar, Box } from "@mui/material"; import { useTranslation } from "react-i18next"; import ReactCountryFlag from "react-country-flag"; import Navigation from "./Navigation"; +import { getPublicPath } from "../../utils/paths"; interface Flag { name: string; @@ -52,8 +44,6 @@ const ApplicationBar: React.FC = () => { setAnchorEl(null); }; - const routePrefix = import.meta.env.VITE_BASE_PATH; - return ( @@ -67,7 +57,7 @@ const ApplicationBar: React.FC = () => { > { > {
- - {i18n.language && ( - - )} + + {i18n.language && } { open={open} onClose={handleClose} > - - {t("Language.Romanian")} - - - {t("Language.English")} - + {t("Language.Romanian")} + {t("Language.English")}