From 1d94463a61c4a4495697554ca5116314c6a842f2 Mon Sep 17 00:00:00 2001 From: Juan Diego Degli Esposte Rosa Date: Mon, 10 Jun 2024 11:45:40 -0300 Subject: [PATCH 1/2] Fixing bug --- src/components/Header.tsx | 4 ++-- src/components/MenuItem.tsx | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/Header.tsx b/src/components/Header.tsx index ca2af2c..e5b027f 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -10,9 +10,9 @@ export function Header (){
    - + {/* */} - +
diff --git a/src/components/MenuItem.tsx b/src/components/MenuItem.tsx index 40ca6ab..581b9cb 100644 --- a/src/components/MenuItem.tsx +++ b/src/components/MenuItem.tsx @@ -1,16 +1,17 @@ type Props = { name: string; - isSelected: boolean; - onClick: () => void; + isSelected?: boolean; + isNotSelected?: boolean; + onClick?: () => void; } -export function MenuItem ({name, isSelected, onClick}: Props) { +export function MenuItem ({name, isSelected, isNotSelected, onClick}: Props) { return( //