diff --git a/frontend/src/components/Header/index.tsx b/frontend/src/components/Header/index.tsx index 62fd29a..b85b136 100644 --- a/frontend/src/components/Header/index.tsx +++ b/frontend/src/components/Header/index.tsx @@ -1,10 +1,15 @@ import * as React from 'react'; import { cn } from '@/lib/utils'; import { Bell, User } from 'lucide-react'; +import { useLocation } from 'react-router-dom'; export interface HeaderProps extends React.HTMLAttributes {} export default function Header({ className, ...props }: HeaderProps) { + const location = useLocation(); + + const isHomePage = location.pathname === '/'; + return (
WorLabel - - -
- - + + {!isHomePage && ( + + )}
+ + {!isHomePage && ( +
+ + +
+ )}
); }