Working with links in footer

This commit is contained in:
Vladislav Khorev 2024-04-10 20:37:16 +00:00
parent f38f7ad7bd
commit ffe8c84d3d
3 changed files with 18 additions and 11 deletions

View File

@ -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" },
// ];

View File

@ -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;
};

View File

@ -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";