From f44d3b2a3d69db8ed72c015cc5886f9402438c8b Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Mon, 1 Jan 2024 13:23:21 +0100 Subject: [PATCH] refactor(vojtechmares.com): use map to iterate over nav links Signed-off-by: Vojtech Mares --- .../components/layout/Navigation.tsx | 40 +++++++++++++------ 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/apps/vojtechmares.com/components/layout/Navigation.tsx b/apps/vojtechmares.com/components/layout/Navigation.tsx index a20f0c2..fc5a4e7 100644 --- a/apps/vojtechmares.com/components/layout/Navigation.tsx +++ b/apps/vojtechmares.com/components/layout/Navigation.tsx @@ -2,6 +2,22 @@ import Link from "next/link"; import { Container } from "@/components/Container"; import { Button } from "@/components/Button"; +import { link } from "fs"; + +const links = [ + { + name: "Školení", + href: "/#skoleni", + }, + { + name: "Blog", + href: "https://vojtechmares.blog/", + }, + // { + // name: "Případové studie", + // href: "/pripadove-studie", + // }, +]; export function Navigation() { return ( @@ -14,19 +30,17 @@ export function Navigation() { Vojtěch Mareš
- - Školení - - {/* Případové studie */} - - Blog - + {links.map((link) => + ( + + {link.name} + + ) + )}