Fix error in footer

This commit is contained in:
ariari04 2024-09-11 15:55:18 +06:00
parent 3c810dad82
commit 5eff43ef61
3 changed files with 11 additions and 11 deletions

View File

@ -25,6 +25,7 @@
img {
width: 50px;
height: auto;
}
input {

View File

@ -7,10 +7,10 @@ export 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" },
{ id: 4, pagename: t("support"), pathname: "/support" },
{ id: 5, pagename: t("statistics"), pathname: "/statistics" },
{ id: 6, pagename: t("news"), pathname: "/news" },
{ id: 7, pagename: t("volunteers"), pathname: "/volunteers" },
];
return LINKS;

View File

@ -30,9 +30,7 @@ const Footer = () => {
<ul>
{LINKS().map((link) => (
<li key={link.id}>
<Link href={link.pathname} key={link.id}>
{link.pagename}
</Link>
<Link href={link.pathname}>{link.pagename}</Link>
</li>
))}
</ul>
@ -40,7 +38,8 @@ const Footer = () => {
<NetKgTracker />*/}
<div className="footer__logo">
<GoogleAnalyticsWidget />
</div>*
</div>
*
</div>
<div className="footer__contacts">
@ -52,7 +51,7 @@ const Footer = () => {
<li>
{[youtube, facebook, instagram].map((net, i) => (
<Link key={i} href="#">
<Image src={net} alt="Net Icon" key={net} />
<Image src={net} alt="Net Icon" />
</Link>
))}
</li>
@ -65,7 +64,7 @@ const Footer = () => {
<div className="footer__apps-btns">
{[app_store_btn, play_market_btn].map((app, i) => (
<Link key={i} href="#">
<Image src={app} alt="App Button" key={app} />
<Image src={app} alt="App Button" />
</Link>
))}
</div>