Skip to content

Commit 41adcdc

Browse files
committed
Rename LoginPage, Header, Footer views to Auth*
1 parent e98346e commit 41adcdc

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎res/themes/status/css/_StatusLogin.scss‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ limitations under the License.
106106
text-align: center;
107107
}
108108

109-
.mx_Login_logo {
109+
.mx_AuthHeader_logo {
110110
background-color: #fff;
111111
width: 74px;
112112
height: 74px;
@@ -118,7 +118,7 @@ limitations under the License.
118118
margin-left: -36px;
119119
}
120120

121-
.mx_Login_logo img {
121+
.mx_AuthHeader_logo img {
122122
width: 36px;
123123
height: 36px;
124124
padding: 19px;

src/components/views/auth/VectorLoginFooter.js renamed to src/components/views/auth/VectorAuthFooter.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
Copyright 2015, 2016 OpenMarket Ltd
3+
Copyright 2019 New Vector Ltd
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.
@@ -21,9 +22,9 @@ import { _t } from 'matrix-react-sdk/lib/languageHandler';
2122
import SettingsStore from 'matrix-react-sdk/lib/settings/SettingsStore';
2223

2324
module.exports = React.createClass({
24-
displayName: 'VectorLoginFooter',
25+
displayName: 'VectorAuthFooter',
2526
statics: {
26-
replaces: 'LoginFooter',
27+
replaces: 'AuthFooter',
2728
},
2829

2930
render: function() {
@@ -32,7 +33,7 @@ module.exports = React.createClass({
3233
if (SettingsStore.getValue("theme") === 'status') return <div />;
3334

3435
return (
35-
<div className="mx_Login_links">
36+
<div className="mx_AuthFooter">
3637
<a href="https://medium.com/@RiotChat">blog</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;
3738
<a href="https://twitter.com/@RiotChat">twitter</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;
3839
<a href="https://github.com/vector-im/riot-web">github</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;

src/components/views/auth/VectorLoginHeader.js renamed to src/components/views/auth/VectorAuthHeader.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
Copyright 2015, 2016 OpenMarket Ltd
3+
Copyright 2019 New Vector Ltd
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.
@@ -23,18 +24,18 @@ const i = [1, 2, 3, 4, 5][Math.floor(Math.random() * 5)];
2324
const DEFAULT_LOGO_URI = "themes/riot/img/logos/riot-im-logo-" + i + ".svg";
2425

2526
module.exports = React.createClass({
26-
displayName: 'VectorLoginHeader',
27+
displayName: 'VectorAuthHeader',
2728
statics: {
28-
replaces: 'LoginHeader',
29+
replaces: 'AuthHeader',
2930
},
3031
propTypes: {
3132
icon: PropTypes.string,
3233
},
3334

3435
render: function() {
3536
return (
36-
<div className="mx_Login_header">
37-
<div className="mx_Login_logo">
37+
<div className="mx_AuthHeader">
38+
<div className="mx_AuthHeader_logo">
3839
<img src={this.props.icon || DEFAULT_LOGO_URI} alt="Riot" />
3940
</div>
4041
</div>

0 commit comments

Comments
 (0)