diff --git a/packages/status-react/src/system/dialog/alert-dialog.tsx b/packages/status-react/src/system/dialog/alert-dialog.tsx index 62b8485f..4a43404c 100644 --- a/packages/status-react/src/system/dialog/alert-dialog.tsx +++ b/packages/status-react/src/system/dialog/alert-dialog.tsx @@ -40,6 +40,7 @@ interface DialogProps { description: string actionLabel: string actionVariant?: ButtonProps['variant'] + onAction: VoidFunction cancelLabel?: string onOpenAutoFocus?: DialogContentProps['onOpenAutoFocus'] onCloseAutoFocus?: DialogContentProps['onCloseAutoFocus'] @@ -51,6 +52,7 @@ const AlertDialog = (props: DialogProps) => { description, actionLabel, actionVariant, + onAction, cancelLabel = 'Cancel', ...contentProps } = props @@ -77,7 +79,9 @@ const AlertDialog = (props: DialogProps) => { - +