diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 9651ac0a..4b5e3f98 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -7,12 +7,15 @@ import { useAuth } from '@/contexts/AuthContext'; import UserProfileMenu from './UserProfileMenu'; import LanguageSelector from './LanguageSelector'; import { useTranslation } from 'react-i18next'; +import { useNavigate } from 'react-router-dom'; const Navbar: React.FC = () => { const [isOpen, setIsOpen] = useState(false); const [isScrolled, setIsScrolled] = useState(false); const { user, signOut } = useAuth(); const { t } = useTranslation(); + const navigate = useNavigate(); + useEffect(() => { const handleScroll = () => { @@ -154,7 +157,22 @@ const Navbar: React.FC = () => { {t('common.contact')}