Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d85b5b6

Browse files
committed
delint & post-rebase fixes
1 parent 3dcb58f commit d85b5b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/structures/auth/Registration.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ export default class Registration extends React.Component<IProps, IState> {
526526
}
527527

528528
// Hide the server picker once the user is doing UI Auth unless encountered a fatal server error
529-
if (this.state.phase !== PHASE_SERVER_DETAILS && this.state.doingUIAuth && !this.state.serverErrorIsFatal) {
529+
if (this.state.phase !== Phase.ServerDetails && this.state.doingUIAuth && !this.state.serverErrorIsFatal) {
530530
return null;
531531
}
532532

@@ -702,7 +702,7 @@ export default class Registration extends React.Component<IProps, IState> {
702702
{ regDoneText }
703703
</div>;
704704
} else {
705-
let yourMatrixAccountText = _t('Create your Matrix account on %(serverName)s', {
705+
let yourMatrixAccountText: ReactNode = _t('Create your Matrix account on %(serverName)s', {
706706
serverName: this.props.serverConfig.hsName,
707707
});
708708
if (this.props.serverConfig.hsNameIsDifferent) {
@@ -740,7 +740,7 @@ export default class Registration extends React.Component<IProps, IState> {
740740
{ errorText }
741741
{ serverDeadSection }
742742
{ this.renderServerComponent() }
743-
{ this.state.phase !== PHASE_SERVER_DETAILS && <h3>
743+
{ this.state.phase !== Phase.ServerDetails && <h3>
744744
{yourMatrixAccountText}
745745
{editLink}
746746
</h3> }

src/components/views/auth/RegistrationForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
1515
limitations under the License.
1616
*/
1717

18-
import React, {ReactNode} from 'react';
18+
import React from 'react';
1919

2020
import * as sdk from '../../../index';
2121
import * as Email from '../../../email';

0 commit comments

Comments
 (0)