From 84f5e5aad26c891c9495017deaf5a4a9a431fe85 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Fri, 18 Aug 2017 12:21:48 +0100 Subject: [PATCH] REmove unused onCancelClick --- src/components/views/elements/ManageIntegsButton.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/views/elements/ManageIntegsButton.js b/src/components/views/elements/ManageIntegsButton.js index 8def6379ec..bb302dc37c 100644 --- a/src/components/views/elements/ManageIntegsButton.js +++ b/src/components/views/elements/ManageIntegsButton.js @@ -64,11 +64,6 @@ export default class ManageIntegsButton extends React.Component { src: (this.scalarClient !== null && this.scalarClient.hasCredentials()) ? this.scalarClient.getScalarInterfaceUrlForRoom(this.props.roomId) : null, - onFinished: ()=>{ - if (this.props.onCancelClick) { - this.props.onCancelClick(ev); - } - }, }, "mx_IntegrationsManager"); } @@ -119,9 +114,7 @@ export default class ManageIntegsButton extends React.Component { ManageIntegsButton.propTypes = { roomId: PropTypes.string.isRequired, - onCancelClick: PropTypes.func, }; ManageIntegsButton.defaultProps = { - onCancelClick: function() {}, };