@@ -76,6 +76,7 @@ module.exports = React.createClass({
7676 } ,
7777
7878 getUserIdSuffix : function ( ) {
79+ return '' ;
7980 var actualHsUrl = document . createElement ( 'a' ) ;
8081 actualHsUrl . href = this . getHsUrl ( ) ;
8182 var defaultHsUrl = document . createElement ( 'a' ) ;
@@ -96,26 +97,24 @@ module.exports = React.createClass({
9697 switch ( step ) {
9798 case 'initial' :
9899 var serverConfigStyle = { } ;
99- if ( ! this . state . serverConfigVisible ) {
100- serverConfigStyle . display = 'none' ;
101- }
100+ serverConfigStyle . display = this . state . serverConfigVisible ? 'block' : 'none' ;
102101 return (
103102 < div >
104103 < form onSubmit = { this . onInitialStageSubmit } >
105- Email: < input type = "text" ref = "email" defaultValue = { this . savedParams . email } /> < br />
106- Username: < input type = "text" ref = "username" defaultValue = { this . savedParams . username } /> { this . getUserIdSuffix ( ) } < br />
107- Password: < input type = "password" ref = "password" defaultValue = { this . savedParams . password } /> < br />
108- Confirm Password: < input type = "password" ref = "confirmPassword" defaultValue = { this . savedParams . confirmPassword } /> < br />
104+ < input className = "mx_Login_field" type = "text" ref = "email" placeholder = "Email address " defaultValue = { this . savedParams . email } /> < br />
105+ < input className = "mx_Login_field" type = "text" ref = "username" placeholder = "User name " defaultValue = { this . savedParams . username } /> { this . getUserIdSuffix ( ) } < br />
106+ < input className = "mx_Login_field" type = "password" ref = "password" placeholder = "Password " defaultValue = { this . savedParams . password } /> < br />
107+ < input className = "mx_Login_field" type = "password" ref = "confirmPassword" placeholder = "Confirm password " defaultValue = { this . savedParams . confirmPassword } /> < br />
109108
110- < input type = "checkbox" value = { this . state . serverConfigVisible } onChange = { this . onServerConfigVisibleChange } />
111- Use custom server options (advanced)
109+ < input className = "mx_Login_checkbox" id = "advanced" type = "checkbox" value = { this . state . serverConfigVisible } onChange = { this . onServerConfigVisibleChange } />
110+ < label for = " advanced " > Use custom server options (advanced)</ label >
112111 < div style = { serverConfigStyle } >
113112 < ServerConfig ref = "serverConfig"
114113 defaultHsUrl = { this . customHsUrl } defaultIsUrl = { this . customIsUrl }
115114 onHsUrlChanged = { this . onServerUrlChanged } onIsUrlChanged = { this . onServerUrlChanged } />
116115 </ div >
117116 < br />
118- < input type = "submit" value = "Continue " />
117+ < input className = "mx_Login_submit" type = "submit" value = "Register " />
119118 </ form >
120119 </ div >
121120 ) ;
@@ -144,10 +143,10 @@ module.exports = React.createClass({
144143 } else {
145144 return (
146145 < div >
147- < h1 > Create an account</ h1 >
146+ < h2 > Create an account</ h2 >
148147 { this . componentForStep ( this . state . step ) }
149- < div className = "error " > { this . state . errorText } </ div >
150- < a onClick = { this . showLogin } href = "#" > I already have an account</ a >
148+ < div className = "mx_Login_error " > { this . state . errorText } </ div >
149+ < a className = "mx_Login_create" onClick = { this . showLogin } href = "#" > I already have an account</ a >
151150 </ div >
152151 ) ;
153152 }
0 commit comments