diff --git a/src/shared/variables/links.ts b/src/shared/variables/links.ts index 4904a7d..ec07c59 100644 --- a/src/shared/variables/links.ts +++ b/src/shared/variables/links.ts @@ -6,8 +6,6 @@ export const LINKS = () => { const LINKS = [ { id: 1, pagename: t("home"), pathname: "/" }, { id: 2, pagename: t("about_us"), pathname: "/about-us" }, - { id: 3, pagename: t("privacy"), pathname: "/privacy" }, - { id: 3, pagename: t("support"), pathname: "/support" }, { id: 4, pagename: t("statistics"), pathname: "/statistics" }, { id: 5, pagename: t("news"), pathname: "/news" }, { id: 6, pagename: t("volunteers"), pathname: "/volunteers" }, @@ -15,11 +13,3 @@ export const LINKS = () => { return LINKS; }; - -// export const LINKS = [ -// { id: 1, pagename: "Главная", pathname: "/" }, -// { id: 2, pagename: "О нас", pathname: "/about-us" }, -// { id: 3, pagename: "Статистика", pathname: "/statistics" }, -// { id: 4, pagename: "Новости", pathname: "/news" }, -// { id: 5, pagename: "Волонтеры", pathname: "/volunteers" }, -// ]; diff --git a/src/shared/variables/links_footer.ts b/src/shared/variables/links_footer.ts new file mode 100644 index 0000000..38d6b30 --- /dev/null +++ b/src/shared/variables/links_footer.ts @@ -0,0 +1,17 @@ +import { useTranslations } from "next-intl"; + +export const LINKS = () => { + const t = useTranslations("navigation"); + + const LINKS = [ + { id: 1, pagename: t("home"), pathname: "/" }, + { id: 2, pagename: t("about_us"), pathname: "/about-us" }, + { id: 3, pagename: t("privacy"), pathname: "/privacy" }, + { id: 3, pagename: t("support"), pathname: "/support" }, + { id: 4, pagename: t("statistics"), pathname: "/statistics" }, + { id: 5, pagename: t("news"), pathname: "/news" }, + { id: 6, pagename: t("volunteers"), pathname: "/volunteers" }, + ]; + + return LINKS; +}; diff --git a/src/widgets/Footer/Footer.tsx b/src/widgets/Footer/Footer.tsx index 8633d77..0d923ec 100644 --- a/src/widgets/Footer/Footer.tsx +++ b/src/widgets/Footer/Footer.tsx @@ -1,7 +1,7 @@ import "./Footer.scss"; import logo from "../../shared/assets/logo.svg"; import Image from "next/image"; -import { LINKS } from "@/shared/variables/links"; +import { LINKS } from "@/shared/variables/links_footer"; import youtube from "./icons/youtube.svg"; import facebook from "./icons/facebook.svg"; import instagram from "./icons/instagram.svg";