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:
parent
b83227c035
commit
0f3ee9c786
5 changed files with 55 additions and 11 deletions
|
@ -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>
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue