From e589174892d9a47029a0081cd298b55e597f7706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Gro=C3=9F?= Date: Fri, 13 Dec 2024 11:47:14 +0100 Subject: [PATCH] fix: Search model open card behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Groß --- components/modals/SearchModal.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/modals/SearchModal.tsx b/components/modals/SearchModal.tsx index d9c2fb50..5f599dda 100644 --- a/components/modals/SearchModal.tsx +++ b/components/modals/SearchModal.tsx @@ -79,11 +79,11 @@ export function SearchModal(props: SearchModalProps) { const [submittingStatistic, setSubmittingStatistic] = useState(false); const [submittingQueue, setSubmittingQueue] = useState(false); - const renderCocktailCard = (cocktail: CocktailRecipeFull, index: number, isArchived: boolean) => ( + const renderCocktailCard = (cocktail: CocktailRecipeFull, index: number, isArchived: boolean, openCard: boolean = false) => (
{showRecipe ? : <>}
@@ -106,7 +106,7 @@ export function SearchModal(props: SearchModalProps) { )}
{showRecipe && ( -
+
+