Rename links for changing auth flow

pull/21833/head
J. Ryan Stinnett 2019-01-23 14:30:09 -06:00
parent e0e873d0a8
commit 9b3d674a92
5 changed files with 10 additions and 10 deletions

View File

@ -69,12 +69,6 @@ limitations under the License.
margin-right: 10px; margin-right: 10px;
} }
.mx_Login_create {
display: block;
text-align: center;
width: 100%;
}
.mx_Login_prompt { .mx_Login_prompt {
padding-top: 15px; padding-top: 15px;
padding-bottom: 15px; padding-bottom: 15px;

View File

@ -30,3 +30,9 @@ limitations under the License.
color: $accent-color; color: $accent-color;
text-decoration: none; text-decoration: none;
} }
.mx_Auth_changeFlow {
display: block;
text-align: center;
width: 100%;
}

View File

@ -256,7 +256,7 @@ module.exports = React.createClass({
</form> </form>
{ serverConfigSection } { serverConfigSection }
{ errorText } { errorText }
<a className="mx_Login_create" onClick={this.onLoginClick} href="#"> <a className="mx_Auth_changeFlow" onClick={this.onLoginClick} href="#">
{ _t('Return to login screen') } { _t('Return to login screen') }
</a> </a>
</div> </div>

View File

@ -526,7 +526,7 @@ module.exports = React.createClass({
let loginAsGuestJsx; let loginAsGuestJsx;
if (this.props.enableGuest) { if (this.props.enableGuest) {
loginAsGuestJsx = loginAsGuestJsx =
<a className="mx_Login_create" onClick={this._onLoginAsGuestClick} href="#"> <a className="mx_Auth_changeFlow" onClick={this._onLoginAsGuestClick} href="#">
{ _t('Try the app first') } { _t('Try the app first') }
</a>; </a>;
} }
@ -564,7 +564,7 @@ module.exports = React.createClass({
{ errorTextSection } { errorTextSection }
{ this.componentForStep(this.state.currentFlow) } { this.componentForStep(this.state.currentFlow) }
{ serverConfig } { serverConfig }
<a className="mx_Login_create" onClick={this.onRegisterClick} href="#"> <a className="mx_Auth_changeFlow" onClick={this.onRegisterClick} href="#">
{ _t('Create an account') } { _t('Create an account') }
</a> </a>
{ loginAsGuestJsx } { loginAsGuestJsx }

View File

@ -465,7 +465,7 @@ module.exports = React.createClass({
let signIn; let signIn;
if (!this.state.doingUIAuth) { if (!this.state.doingUIAuth) {
signIn = ( signIn = (
<a className="mx_Login_create" onClick={this.onLoginClick} href="#"> <a className="mx_Auth_changeFlow" onClick={this.onLoginClick} href="#">
{ _t('I already have an account') } { _t('I already have an account') }
</a> </a>
); );