diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 80c7665..300d0f0 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -66,10 +66,32 @@ export function Header() { return false; } + function handleLogoClick(event: React.MouseEvent) { + if (pathname !== '/pl') { + return; + } + + event.preventDefault(); + setIsOpen(false); + + if (window.location.hash) { + window.history.replaceState(null, '', pathname); + } + + window.scrollTo({top: 0, left: 0}); + setActiveSection(null); + } + return (
- +