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 { img {
width: 50px; width: 50px;
height: auto;
} }
input { input {

View File

@ -7,10 +7,10 @@ export const LINKS = () => {
{ id: 1, pagename: t("home"), pathname: "/" }, { id: 1, pagename: t("home"), pathname: "/" },
{ id: 2, pagename: t("about_us"), pathname: "/about-us" }, { id: 2, pagename: t("about_us"), pathname: "/about-us" },
{ id: 3, pagename: t("privacy"), pathname: "/privacy" }, { id: 3, pagename: t("privacy"), pathname: "/privacy" },
{ id: 3, pagename: t("support"), pathname: "/support" }, { id: 4, pagename: t("support"), pathname: "/support" },
{ id: 4, pagename: t("statistics"), pathname: "/statistics" }, { id: 5, pagename: t("statistics"), pathname: "/statistics" },
{ id: 5, pagename: t("news"), pathname: "/news" }, { id: 6, pagename: t("news"), pathname: "/news" },
{ id: 6, pagename: t("volunteers"), pathname: "/volunteers" }, { id: 7, pagename: t("volunteers"), pathname: "/volunteers" },
]; ];
return LINKS; return LINKS;

View File

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