You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Remove unused errorText prop
Login is only used from MatrixChat and that doesn't specify it
This commit is contained in:
@@ -59,11 +59,6 @@ module.exports = React.createClass({
|
|||||||
propTypes: {
|
propTypes: {
|
||||||
onLoggedIn: PropTypes.func.isRequired,
|
onLoggedIn: PropTypes.func.isRequired,
|
||||||
|
|
||||||
// An error passed along from higher up explaining that something
|
|
||||||
// went wrong. May be replaced with a different error within the
|
|
||||||
// Login component.
|
|
||||||
errorText: PropTypes.string,
|
|
||||||
|
|
||||||
// If true, the component will consider itself busy.
|
// If true, the component will consider itself busy.
|
||||||
busy: PropTypes.bool,
|
busy: PropTypes.bool,
|
||||||
|
|
||||||
@@ -141,7 +136,7 @@ module.exports = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
hasError: function() {
|
hasError: function() {
|
||||||
return this.state.errorText || this.props.errorText;
|
return this.state.errorText;
|
||||||
},
|
},
|
||||||
|
|
||||||
onPasswordLogin: function(username, phoneCountry, phoneNumber, password) {
|
onPasswordLogin: function(username, phoneCountry, phoneNumber, password) {
|
||||||
@@ -515,7 +510,7 @@ module.exports = React.createClass({
|
|||||||
const AuthBody = sdk.getComponent("auth.AuthBody");
|
const AuthBody = sdk.getComponent("auth.AuthBody");
|
||||||
const loader = this.isBusy() ? <div className="mx_Login_loader"><Loader /></div> : null;
|
const loader = this.isBusy() ? <div className="mx_Login_loader"><Loader /></div> : null;
|
||||||
|
|
||||||
const errorText = this.state.errorText || this.props.errorText;
|
const errorText = this.state.errorText;
|
||||||
|
|
||||||
let errorTextSection;
|
let errorTextSection;
|
||||||
if (errorText) {
|
if (errorText) {
|
||||||
|
|||||||
Reference in New Issue
Block a user