From da84b634f8dcf56184ade927fda87bd5f1f5c588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1muel=20Fekete?= Date: Tue, 19 Nov 2024 21:10:41 +0100 Subject: [PATCH] feat: use content1 as bg color everywhere (#46) --- src/components/Accordions/Accordion.tsx | 2 +- src/components/AlertsMenu/AlertButton.tsx | 7 +- src/components/Chatbot/Chatbot.tsx | 2 +- src/components/HungerAlert/HungerAlert.tsx | 2 +- src/components/HungerAlert/style.css | 2 +- .../hungerAlert/HungerAlertOperations.ts | 2 +- yarn.lock | 18446 +++++++--------- 7 files changed, 7617 insertions(+), 10846 deletions(-) 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 (