Allow a custom login logo to be displayed on login
This is to allow team logos to be shown when a user registers with a team email.
This commit is contained in:
parent
bb70622b55
commit
02d6a10f67
|
@ -23,11 +23,14 @@ module.exports = React.createClass({
|
||||||
statics: {
|
statics: {
|
||||||
replaces: 'LoginHeader',
|
replaces: 'LoginHeader',
|
||||||
},
|
},
|
||||||
|
propTypes: {
|
||||||
|
icon: React.PropTypes.string,
|
||||||
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<div className="mx_Login_logo">
|
<div className="mx_Login_logo">
|
||||||
<img src="img/logo.png" width="195" height="195" alt="Riot"/>
|
<img src={this.props.icon || "img/logo.png"} width="195" height="195" alt="Riot"/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue