Skip to content

Commit

Permalink
Used a fat arrow to work in headerNavigation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisForti committed Aug 3, 2024
1 parent 600ced4 commit c0bc050
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type HeaderProps = {
};

export function Header({ headerNavigation }: HeaderProps) {
const [isOpen, setIsOpen] = useState<boolean>(false);
const [isOpen, setIsOpen] = useState(false);

function navigationToggle() {
setIsOpen(!isOpen);
Expand All @@ -16,7 +16,9 @@ export function Header({ headerNavigation }: HeaderProps) {
<div className="container mx-auto flex items-center justify-between px-10 py-6">
<div>
<a
onClick={navigationToggle}
onClick={() => {
headerNavigation;
}}
href="/Mainpage"
className="bg-gradient-to-tr from-indigo-600 to-green-600 bg-clip-text text-4xl font-bold text-transparent hover:cursor-pointer"
>
Expand All @@ -26,14 +28,12 @@ export function Header({ headerNavigation }: HeaderProps) {
<nav className="flex items-center">
<ul className="hidden items-center space-x-4 sm:flex">
<li>
<a href="/Mainpage">
<button
onClick={navigationToggle}
className="text-md from-indigo-600 to-green-600 hover:text-indigo-600"
>
Home
</button>
</a>
<button
onClick={navigationToggle}
className="text-md from-indigo-600 to-green-600 hover:text-indigo-600"
>
<a href="/Mainpage">Home</a>
</button>
</li>
</ul>
<div className="ml-8 hidden items-center space-x-4 md:flex lg:ml-12"></div>
Expand Down

0 comments on commit c0bc050

Please sign in to comment.