From 92cbdc16fae7cd68087bf4b84e36df45d8269ced Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Thu, 31 Mar 2022 15:14:01 +0200 Subject: [PATCH] feat(system): add label props to AlertDialog --- .../status-react/src/system/dialog/alert-dialog.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/status-react/src/system/dialog/alert-dialog.tsx b/packages/status-react/src/system/dialog/alert-dialog.tsx index e9f58418..05adb864 100644 --- a/packages/status-react/src/system/dialog/alert-dialog.tsx +++ b/packages/status-react/src/system/dialog/alert-dialog.tsx @@ -31,12 +31,12 @@ const AlertDialogTrigger = (props: TriggerProps) => { interface DialogProps { title: string description: string - // actionLabel: string - // cancelLabel?: string + actionLabel: string + cancelLabel?: string } const AlertDialog = (props: DialogProps) => { - const { title, description } = props + const { title, description, cancelLabel = 'Cancel', actionLabel } = props return ( @@ -57,10 +57,10 @@ const AlertDialog = (props: DialogProps) => { - + - +