From 35b0e9e9d5aa9db4fea1c664551d324a01152948 Mon Sep 17 00:00:00 2001 From: Tharun T Date: Fri, 5 Jul 2024 21:53:40 +0530 Subject: [PATCH] fix: defaultActionDisabled flag Signed-off-by: Tharun T --- src/custom/ActionButton/ActionButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/custom/ActionButton/ActionButton.tsx b/src/custom/ActionButton/ActionButton.tsx index 5ecfbc5f..dc8d1647 100644 --- a/src/custom/ActionButton/ActionButton.tsx +++ b/src/custom/ActionButton/ActionButton.tsx @@ -20,12 +20,14 @@ interface Option { interface ActionButtonProps { defaultActionClick: () => void; + defaultActionDisabled?: boolean; options: Option[]; label: string; } export default function ActionButton({ defaultActionClick, + defaultActionDisabled = false, options, label }: ActionButtonProps): JSX.Element { @@ -53,7 +55,7 @@ export default function ActionButton({ style={{ boxShadow: 'none' }} aria-label="Button group with a nested menu" > -