fix: update navigations import to uppercase and add missing Testimoni entry

This commit is contained in:
arraysid
2025-05-27 05:16:32 +07:00
parent 0296a891eb
commit e971d33a05
3 changed files with 12 additions and 3 deletions
@@ -1,7 +1,7 @@
'use client'; 'use client';
import { LogoSimple } from '@/app/_components/logo'; import { LogoSimple } from '@/app/_components/logo';
import navigations from '@/data/navigations.json'; import NAVIGATIONS from '@/data/navigations.json';
import { Button } from '@components'; import { Button } from '@components';
import { cn } from '@utils'; import { cn } from '@utils';
import Link from 'next/link'; import Link from 'next/link';
@@ -43,7 +43,7 @@ export function Header() {
{/* Desktop Navigation */} {/* Desktop Navigation */}
<nav className="hidden md:flex items-center gap-8"> <nav className="hidden md:flex items-center gap-8">
{navigations.map(({ link, title }) => ( {NAVIGATIONS.map(({ link, title }) => (
<Link <Link
key={link} key={link}
href={link} href={link}
@@ -90,7 +90,7 @@ export function Header() {
{mobileMenuOpen && ( {mobileMenuOpen && (
<div className="md:hidden border-t bg-background/95 backdrop-blur-md"> <div className="md:hidden border-t bg-background/95 backdrop-blur-md">
<nav className="container flex flex-col py-4 text-center"> <nav className="container flex flex-col py-4 text-center">
{navigations.map(({ link, title }) => ( {NAVIGATIONS.map(({ link, title }) => (
<Link <Link
key={link} key={link}
href={link} href={link}
@@ -0,0 +1,5 @@
'use client';
export default function Page() {
return <></>;
}
+4
View File
@@ -6,5 +6,9 @@
{ {
"title": "Event", "title": "Event",
"link": "/events" "link": "/events"
},
{
"title": "Testimoni",
"link": "/testimonials"
} }
] ]