Skip to content

Commit

Permalink
feat: use <Link> as wrapper of <a> on header title
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Aug 23, 2022
1 parent ed07f92 commit b91f3ab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useState } from 'react'
import Link from 'next/link'
import {
SpeakerSimpleHigh,
SpeakerSimpleLow,
Expand All @@ -17,9 +18,9 @@ export const Header: React.FC = () => {
return (
<header className="relative flex justify-between md:justify-center items-center gap-5 px-6 h-[15vh] bg-[rgba(255, 255, 255, 0.1)] md:shadow-header">
<h1 className="font-semibold text-2xl">
<a href="/" className="umami--click--title text-white/90">
Noisekun
</a>
<Link href="/">
<a className="umami--click--title text-white/90">Noisekun</a>
</Link>
</h1>
<div
className="md:absolute md:right-10 flex gap-3 items-center opacity-90 hover:opacity-100"
Expand Down

0 comments on commit b91f3ab

Please sign in to comment.