diff --git a/src/components/views/dialogs/InfoDialog.js b/src/components/views/dialogs/InfoDialog.js index 9e195c3291..620aaf615a 100644 --- a/src/components/views/dialogs/InfoDialog.js +++ b/src/components/views/dialogs/InfoDialog.js @@ -26,38 +26,24 @@ export default React.createClass({ propTypes: { title: PropTypes.string, description: PropTypes.node, - extraButtons: PropTypes.node, button: PropTypes.string, - danger: PropTypes.bool, - focus: PropTypes.bool, - onFinished: PropTypes.func.isRequired, + onFinished: PropTypes.func, }, getDefaultProps: function() { return { title: "", description: "", - extraButtons: null, - focus: true, - danger: false, }; }, - onOk: function() { - this.props.onFinished(true); - }, - - onCancel: function() { - this.props.onFinished(false); + onFinished: function() { + this.props.onFinished(); }, render: function() { const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog'); const DialogButtons = sdk.getComponent('views.elements.DialogButtons'); - let primaryButtonClass = ""; - if (this.props.danger) { - primaryButtonClass = "danger"; - } return ( - { this.props.extraButtons } );