From ed325b1bd46b02c4ae7a98aa643f5095f17250f7 Mon Sep 17 00:00:00 2001 From: Pablo Allendes Date: Thu, 7 Dec 2023 15:34:54 -0300 Subject: [PATCH] fix(NavigationPopover): Make overlay optional --- src/components/navigation/navigation-popover.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/navigation/navigation-popover.tsx b/src/components/navigation/navigation-popover.tsx index 664b88ce..4a52a888 100644 --- a/src/components/navigation/navigation-popover.tsx +++ b/src/components/navigation/navigation-popover.tsx @@ -45,13 +45,16 @@ NavigationPopoverPanel.Item = NavigationPopoverPanelItem; export interface NavigationPopoverProps { children: React.ReactNode; + showOverlay?: boolean; } -const NavigationPopover = ({ children }: NavigationPopoverProps) => { +const NavigationPopover = ({ children, showOverlay }: NavigationPopoverProps) => { return ( <> - + {showOverlay && ( + + )}
{children}