From a73e3dcd4ceaa58c4c1608b7a936c51254407e5a Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Tue, 5 Feb 2019 07:11:29 +0000 Subject: [PATCH] Remove unused props from registration --- src/components/structures/MatrixChat.js | 4 ---- src/components/structures/auth/Registration.js | 6 ------ 2 files changed, 10 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 613d310da9..77800109e4 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -1891,7 +1891,6 @@ export default React.createClass({ sessionId={this.state.register_session_id} idSid={this.state.register_id_sid} email={this.props.startingFragmentQueryParams.email} - referrer={this.props.startingFragmentQueryParams.referrer} defaultServerDiscoveryError={this.state.defaultServerDiscoveryError} defaultHsUrl={this.getDefaultHsUrl()} defaultIsUrl={this.getDefaultIsUrl()} @@ -1899,11 +1898,8 @@ export default React.createClass({ customHsUrl={this.getCurrentHsUrl()} customIsUrl={this.getCurrentIsUrl()} makeRegistrationUrl={this._makeRegistrationUrl} - defaultDeviceDisplayName={this.props.defaultDeviceDisplayName} onLoggedIn={this.onRegistered} onLoginClick={this.onLoginClick} - onRegisterClick={this.onRegisterClick} - onCancelClick={MatrixClientPeg.get() ? this.onReturnToAppClick : null} onServerConfigChange={this.onServerConfigChange} /> ); diff --git a/src/components/structures/auth/Registration.js b/src/components/structures/auth/Registration.js index 55cb4b7499..69abd8b88b 100644 --- a/src/components/structures/auth/Registration.js +++ b/src/components/structures/auth/Registration.js @@ -54,17 +54,11 @@ module.exports = React.createClass({ defaultIsUrl: PropTypes.string, brand: PropTypes.string, email: PropTypes.string, - referrer: PropTypes.string, - // An error passed along from higher up explaining that something // went wrong when finding the defaultHsUrl. defaultServerDiscoveryError: PropTypes.string, - - defaultDeviceDisplayName: PropTypes.string, - // registration shouldn't know or care how login is done. onLoginClick: PropTypes.func.isRequired, - onCancelClick: PropTypes.func, onServerConfigChange: PropTypes.func.isRequired, },