File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,14 @@ interface Option {
20
20
21
21
interface ActionButtonProps {
22
22
defaultActionClick : ( ) => void ;
23
+ defaultActionDisabled ?: boolean ;
23
24
options : Option [ ] ;
24
25
label : string ;
25
26
}
26
27
27
28
export default function ActionButton ( {
28
29
defaultActionClick,
30
+ defaultActionDisabled = false ,
29
31
options,
30
32
label
31
33
} : ActionButtonProps ) : JSX . Element {
@@ -53,7 +55,7 @@ export default function ActionButton({
53
55
style = { { boxShadow : 'none' } }
54
56
aria-label = "Button group with a nested menu"
55
57
>
56
- < Button onClick = { defaultActionClick } variant = "contained" >
58
+ < Button onClick = { defaultActionClick } variant = "contained" disabled = { defaultActionDisabled } >
57
59
{ label }
58
60
</ Button >
59
61
< Button size = "small" onClick = { handleToggle } variant = "contained" >
You can’t perform that action at this time.
0 commit comments