Skip to content

Commit

Permalink
fix(DesktopNav): rectify types error
Browse files Browse the repository at this point in the history
issue #82
  • Loading branch information
sabertazimi committed Aug 4, 2021
1 parent 512fef2 commit 686177c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Header/DesktopNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import { Routes } from '@config';
import PostsSearchBar from '@components/PostsSearchBar';
import logo from 'images/logo-full.png';

const DesktopNav = ({ fixed }) => (
interface Props {
fixed: boolean;
}

const DesktopNav = ({ fixed }: Props): JSX.Element => (
<Menu
className={classNames(
'fixed z-100 w-full font-extrabold transition transform-gpu border-transparent hidden md:visible md:flex',
Expand All @@ -22,7 +26,7 @@ const DesktopNav = ({ fixed }) => (
})}
>
<Link to="/">
<img className="block w-full h-24" src={logo} alt="Logo" />
<img className="block w-full h-24" src={logo as string} alt="Logo" />
</Link>
</Menu.Item>
{Routes.map((route) => (
Expand Down

0 comments on commit 686177c

Please sign in to comment.