diff --git a/src/components/ui/organisms/header/header.tsx b/src/components/ui/organisms/header/index.tsx similarity index 96% rename from src/components/ui/organisms/header/header.tsx rename to src/components/ui/organisms/header/index.tsx index 5eab8a4e..8a1dda37 100644 --- a/src/components/ui/organisms/header/header.tsx +++ b/src/components/ui/organisms/header/index.tsx @@ -16,7 +16,10 @@ import useTranslation from 'next-translate/useTranslation' export type HeaderProps = { logo: ImageProps - links: Array + links: Array<{ + title: string + href: string + }> isFloating?: boolean } @@ -25,7 +28,7 @@ export default function Header({logo, links, isFloating}: HeaderProps) { const [sidebarOpen, setSidebarOpen] = useState(false) const pathname = usePathname() - const navigation: Array = links.map((link) => ({ + const navigation: Array = links.map(link => ({ href: link.href || '', title: link.title })) @@ -86,7 +89,7 @@ export default function Header({logo, links, isFloating}: HeaderProps) { {item.title} - + ))}
@@ -130,7 +133,7 @@ export default function Header({logo, links, isFloating}: HeaderProps) {