diff --git a/app/components/Drawer/Drawer.tsx b/app/components/Drawer/Drawer.tsx index 98fafe1..b9b69dc 100644 --- a/app/components/Drawer/Drawer.tsx +++ b/app/components/Drawer/Drawer.tsx @@ -4,6 +4,7 @@ import { useEffect, useState } from 'react'; import { LanguageButton } from '../LanguageButton/LanguageButton'; import styles from './drawer.module.css'; import { useTranslation } from 'react-i18next'; +import { useLocation } from 'react-router'; export interface DrawerProps { links: Record<'label' | 'to', string>[]; @@ -26,6 +27,9 @@ export const Drawer = ({ }: DrawerProps) => { const [open, setOpen] = useState(false); const { t } = useTranslation(); + + const location = useLocation(); + const isHome = location.pathname === '/'; useEffect(() => { document.documentElement.style.overflow = open ? 'hidden' : ''; @@ -33,13 +37,19 @@ export const Drawer = ({ return (