mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Add Riot logo via more targeted replacement
This commit is contained in:
parent
a2c84e7702
commit
6d7492d92a
@ -24,9 +24,9 @@ const i = [1, 2, 3, 4, 5][Math.floor(Math.random() * 5)];
|
|||||||
const DEFAULT_LOGO_URI = "themes/riot/img/logos/riot-im-logo-" + i + ".svg";
|
const DEFAULT_LOGO_URI = "themes/riot/img/logos/riot-im-logo-" + i + ".svg";
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'VectorAuthHeader',
|
displayName: 'VectorAuthHeaderLogo',
|
||||||
statics: {
|
statics: {
|
||||||
replaces: 'AuthHeader',
|
replaces: 'AuthHeaderLogo',
|
||||||
},
|
},
|
||||||
propTypes: {
|
propTypes: {
|
||||||
icon: PropTypes.string,
|
icon: PropTypes.string,
|
||||||
@ -34,10 +34,8 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<div className="mx_AuthHeader">
|
<div className="mx_AuthHeaderLogo">
|
||||||
<div className="mx_AuthHeader_logo">
|
<img src={this.props.icon || DEFAULT_LOGO_URI} alt="Riot" />
|
||||||
<img src={this.props.icon || DEFAULT_LOGO_URI} alt="Riot" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
Loading…
Reference in New Issue
Block a user