Improve MineGeo interface and functionality
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
"use client";
|
||||
import { useI18n } from "@/components/I18nProvider";
|
||||
|
||||
import Link from "next/link";
|
||||
import { usePathname } from "next/navigation";
|
||||
|
||||
@@ -10,9 +12,10 @@ const links = [
|
||||
] as const;
|
||||
|
||||
export function SiteNav() {
|
||||
const { t } = useI18n();
|
||||
const pathname = usePathname();
|
||||
return (
|
||||
<nav aria-label="Main navigation">
|
||||
<nav aria-label={t("Main navigation")}>
|
||||
{links.map(([href, label]) => (
|
||||
<Link
|
||||
key={href}
|
||||
@@ -23,7 +26,7 @@ export function SiteNav() {
|
||||
: undefined
|
||||
}
|
||||
>
|
||||
{label}
|
||||
{t(label)}
|
||||
</Link>
|
||||
))}
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user