From b50e4e40043e7b03979912f2170ad90f26ea4e14 Mon Sep 17 00:00:00 2001 From: Pablo Allendes Date: Fri, 15 Dec 2023 09:28:19 -0300 Subject: [PATCH] fix(NavigationDisclosureButton): Add onclick prop to NavigationDisclosureButton --- src/components/navigation/navigation-disclosure.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/navigation/navigation-disclosure.tsx b/src/components/navigation/navigation-disclosure.tsx index 4bfffdba..8df1e60f 100644 --- a/src/components/navigation/navigation-disclosure.tsx +++ b/src/components/navigation/navigation-disclosure.tsx @@ -5,11 +5,19 @@ import { NavigationDisclosurePanel } from "./navigation-disclosure-panel"; export interface NavigationDisclosureButtonProps { children: React.ReactNode; LeftIcon?: React.ElementType; + onClick?: () => void; } -const NavigationDisclosureButton = ({ children, LeftIcon }: NavigationDisclosureButtonProps) => { +const NavigationDisclosureButton = ({ + children, + LeftIcon, + onClick, +}: NavigationDisclosureButtonProps) => { return ( - + {LeftIcon ? : null} {children}