use brand instead of Riot string

bwindels/usebrand
Bruno Windels 2020-06-26 15:05:56 +02:00
parent 76c93c8bf7
commit 336bd04349
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ export default class VectorAuthHeaderLogo extends React.PureComponent {
}
render() {
const brand = SdkConfig.get().brand || "Riot";
const brandingConfig = SdkConfig.get().branding;
let logoUrl = "themes/riot/img/logos/riot-im-logo-black-text.svg";
if (brandingConfig && brandingConfig.authHeaderLogoUrl) {
@ -37,7 +38,7 @@ export default class VectorAuthHeaderLogo extends React.PureComponent {
return (
<div className="mx_AuthHeaderLogo">
<img src={logoUrl} alt="Riot" />
<img src={logoUrl} alt={brand} />
</div>
);
}