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.
pull/3082/head
Luke Barnard 2017-01-27 16:08:14 +00:00
parent bb70622b55
commit 02d6a10f67
1 changed files with 4 additions and 1 deletions

View File

@ -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>
); );
} }