diff --git a/src/components/views/dialogs/ConfirmRedactDialog.js b/src/components/views/dialogs/ConfirmRedactDialog.js index 7b5a9f776b..5c4ec30150 100644 --- a/src/components/views/dialogs/ConfirmRedactDialog.js +++ b/src/components/views/dialogs/ConfirmRedactDialog.js @@ -24,51 +24,17 @@ import { _t } from '../../../languageHandler'; */ export default React.createClass({ displayName: 'ConfirmRedactDialog', - propTypes: { - onFinished: React.PropTypes.func.isRequired, - }, - - defaultProps: { - danger: false, - }, - - onOk: function() { - this.props.onFinished(true); - }, - - onCancel: function() { - this.props.onFinished(false); - }, render: function() { - const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog'); - - const title = _t("Confirm Removal"); - - const confirmButtonClass = classnames({ - 'mx_Dialog_primary': true, - 'danger': false, - }); - + const QuestionDialog = sdk.getComponent('views.dialogs.QuestionDialog'); return ( - -
- { _t("Are you sure you wish to remove (delete) this event? " + - "Note that if you delete a room name or topic change, it could undo the change.") } -
-
- - - -
-
+ + ); }, });