From e956ef3059db11fdfa16793477fd9bbb485b5f22 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 28 Dec 2017 20:47:20 +0000 Subject: [PATCH] Change the delete confirmation dialog label. --- src/components/ContactEdit.tsx | 1 + src/components/EventEdit.tsx | 1 + src/widgets/ConfirmationDialog.tsx | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ContactEdit.tsx b/src/components/ContactEdit.tsx index 51ac7c5..bc6848d 100644 --- a/src/components/ContactEdit.tsx +++ b/src/components/ContactEdit.tsx @@ -506,6 +506,7 @@ class ContactEdit extends React.PureComponent { this.props.onDelete(this.props.item!, this.props.initialCollection!)} onCancel={() => this.setState({showDeleteDialog: false})} diff --git a/src/components/EventEdit.tsx b/src/components/EventEdit.tsx index fc514f4..e5ede0a 100644 --- a/src/components/EventEdit.tsx +++ b/src/components/EventEdit.tsx @@ -282,6 +282,7 @@ class EventEdit extends React.PureComponent { this.props.onDelete(this.props.item!, this.props.initialCollection!)} onCancel={() => this.setState({showDeleteDialog: false})} diff --git a/src/widgets/ConfirmationDialog.tsx b/src/widgets/ConfirmationDialog.tsx index 80a680f..5c7de2c 100644 --- a/src/widgets/ConfirmationDialog.tsx +++ b/src/widgets/ConfirmationDialog.tsx @@ -9,6 +9,7 @@ export default pure((_props: any) => { const { onCancel, onOk, + labelOk, ...props, } = _props; const actions = [ @@ -24,7 +25,7 @@ export default pure((_props: any) => { (