Extract auth header logo to new component

This will allow `riot-web` to replace only the logo, rather than the whole
header.
This commit is contained in:
J. Ryan Stinnett 2019-01-22 21:51:42 -06:00
parent b83227c035
commit 0f3ee9c786
5 changed files with 55 additions and 11 deletions

View file

@ -18,16 +18,17 @@ limitations under the License.
'use strict';
const React = require('react');
import sdk from '../../../index';
module.exports = React.createClass({
displayName: 'AuthHeader',
render: function() {
const AuthHeaderLogo = sdk.getComponent('auth.AuthHeaderLogo');
return (
<div className="mx_AuthHeader">
<div className="mx_AuthHeader_logo">
Matrix
</div>
<AuthHeaderLogo />
</div>
);
},