From c6fac69a8273ce20216002925deb0a2b5425dc25 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sun, 14 Mar 2021 01:00:49 +0300
Subject: feat: add basic routing

---
 src/components/Header.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/components/Header.tsx')

diff --git a/src/components/Header.tsx b/src/components/Header.tsx
index e61ac63..75d96a9 100644
--- a/src/components/Header.tsx
+++ b/src/components/Header.tsx
@@ -1,4 +1,5 @@
 import React from 'react';
+import { Link } from 'react-router-dom';
 
 interface Props {
   navigation: {
@@ -11,7 +12,7 @@ const Header: React.FC<Props> = ({ children, navigation }) => {
   return (
     <header className="bg-black text-white flex">
       {navigation.map(({ name, route }) => (
-        <a href={route} className="py-6 px-8 font-bold tracking-wide hover:underline">{name}</a>
+        <Link to={route} className="py-6 px-8 font-bold tracking-wide hover:underline">{name}</Link>
       ))}
     </header>
   );
-- 
cgit v1.2.3

