diff --git a/next-i18next.config.js b/next-i18next.config.js index ef7bdf1..6a4b3a4 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -1,4 +1,5 @@ const path = require("path"); + module.exports = { i18n: { defaultLocale: "en", diff --git a/src/components/AddServicePage/AddService.jsx b/src/components/AddServicePage/AddService.jsx index 861a815..6d033c1 100644 --- a/src/components/AddServicePage/AddService.jsx +++ b/src/components/AddServicePage/AddService.jsx @@ -21,7 +21,6 @@ const AddService = ({ user }) => { e.preventDefault(); const form = new FormData(e.target); const images = form.getAll("images"); - console.log("in handle", serviceData); addService(user, images, serviceData); }; diff --git a/src/components/Footer/Footer.jsx b/src/components/Footer/Footer.jsx index 8b77597..c8c61c7 100644 --- a/src/components/Footer/Footer.jsx +++ b/src/components/Footer/Footer.jsx @@ -4,8 +4,8 @@ import React from "react"; import Link from "next/link"; import { useTranslation } from "next-i18next"; import { useRouter } from "next/router"; -import { FooterContainer, MainContainer } from "./Footer.styled"; import cookie from "cookie-cutter"; +import { FooterContainer, MainContainer } from "./Footer.styled"; // eslint-disable-next-line arrow-body-style const Footer = () => { @@ -15,7 +15,6 @@ const Footer = () => { const changeLocale = () => { const locale = router.locale === "en" ? "ku" : "en"; cookie.set("NEXT_LOCALE", locale); - console.log(cookie.get("NEXT_LOCALE")); router.push(router.asPath, undefined, { locale }); }; diff --git a/src/components/HeroComponents/LogoSection.jsx b/src/components/HeroComponents/LogoSection.jsx index 90246fd..2b79a45 100644 --- a/src/components/HeroComponents/LogoSection.jsx +++ b/src/components/HeroComponents/LogoSection.jsx @@ -14,7 +14,7 @@ const LogoSection = () => {