Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit db452b3

Browse files
committed
Make header logo a link to homepage
1 parent 081d40f commit db452b3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/organisms/Header/Header.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Logo from '@/components/atoms/Logo'
33
import {MenuContext} from '@/components/common/MenuProvider'
44
import AlgoliaSearch from '@/components/molecules/AlgoliaSearch'
55
import Navigation from '@/components/molecules/Navigation'
6+
import Link from 'next/link'
67
import {useContext} from 'react'
78
import styles from './Header.module.css'
89

@@ -31,7 +32,11 @@ export default function Header() {
3132
/>
3233
</div>
3334
<div className={styles.navigation}>
34-
<Logo className={styles.logo} type="dark" />
35+
<Link href="/">
36+
<a>
37+
<Logo className={styles.logo} type="dark" />
38+
</a>
39+
</Link>
3540
<Navigation
3641
menu={menus?.primary_menu}
3742
styles={styles}

0 commit comments

Comments
 (0)