diff --git a/src/components/Accordions/Accordion.tsx b/src/components/Accordions/Accordion.tsx index 41bbb59d..55b76e59 100644 --- a/src/components/Accordions/Accordion.tsx +++ b/src/components/Accordions/Accordion.tsx @@ -15,7 +15,7 @@ export default function CustomAccordion({ items, loading = false }: AccordionsPr
diff --git a/src/components/AlertsMenu/AlertButton.tsx b/src/components/AlertsMenu/AlertButton.tsx index b0231074..617fe797 100644 --- a/src/components/AlertsMenu/AlertButton.tsx +++ b/src/components/AlertsMenu/AlertButton.tsx @@ -3,15 +3,20 @@ import clsx from 'clsx'; import NextImage from 'next/image'; import { forwardRef } from 'react'; +import { useSidebar } from '@/domain/contexts/SidebarContext'; import { AlertButtonProps } from '@/domain/props/AlertButtonProps'; export const AlertButton = forwardRef( ({ icon, label, isSelected, onClick, className, ...props }, ref) => { + const { isSidebarOpen } = useSidebar(); return ( diff --git a/src/components/HungerAlert/HungerAlert.tsx b/src/components/HungerAlert/HungerAlert.tsx index cb6d1d2a..afe2be2d 100644 --- a/src/components/HungerAlert/HungerAlert.tsx +++ b/src/components/HungerAlert/HungerAlert.tsx @@ -24,7 +24,7 @@ export default function HungerAlert({ countryMapData }: HungerAlertProps) { return (