Merge branch 'master' into listings
This commit is contained in:
commit
483f72df65
1 changed files with 0 additions and 2 deletions
|
@ -3,7 +3,6 @@ import Footer from "./shared-components/footer-component/Footer";
|
||||||
import Navbar from "./shared-components/navbar-component/Navbar";
|
import Navbar from "./shared-components/navbar-component/Navbar";
|
||||||
import { BrowserRouter, Route, Switch } from "react-router-dom";
|
import { BrowserRouter, Route, Switch } from "react-router-dom";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { useTranslation } from "react-i18next";
|
|
||||||
import Cookies from "js-cookie";
|
import Cookies from "js-cookie";
|
||||||
import HomePage from "./homePage/Homepage";
|
import HomePage from "./homePage/Homepage";
|
||||||
import ListingsPage from "./listings-page/ListingsPage";
|
import ListingsPage from "./listings-page/ListingsPage";
|
||||||
|
@ -31,7 +30,6 @@ function App() {
|
||||||
const currentLanguage = langauges.find(
|
const currentLanguage = langauges.find(
|
||||||
(lang) => lang.code === currentLanguageCode
|
(lang) => lang.code === currentLanguageCode
|
||||||
);
|
);
|
||||||
const { t } = useTranslation();
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.body.dir = currentLanguage.dir || "ltr";
|
document.body.dir = currentLanguage.dir || "ltr";
|
||||||
|
|
Loading…
Reference in a new issue