mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Convert VectorAuthHeaderLogo to modern code style
This commit is contained in:
parent
86ced4cdad
commit
18d898cc1f
@ -22,20 +22,18 @@ import PropTypes from 'prop-types';
|
|||||||
|
|
||||||
const LOGO_URI = "themes/riot/img/logos/riot-im-logo-black-text.svg";
|
const LOGO_URI = "themes/riot/img/logos/riot-im-logo-black-text.svg";
|
||||||
|
|
||||||
module.exports = React.createClass({
|
export default class VectorAuthHeaderLogo extends React.PureComponent {
|
||||||
displayName: 'VectorAuthHeaderLogo',
|
static replaces = 'AuthHeaderLogo'
|
||||||
statics: {
|
|
||||||
replaces: 'AuthHeaderLogo',
|
|
||||||
},
|
|
||||||
propTypes: {
|
|
||||||
icon: PropTypes.string,
|
|
||||||
},
|
|
||||||
|
|
||||||
render: function() {
|
static propTypes = {
|
||||||
|
icon: PropTypes.string,
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="mx_AuthHeaderLogo">
|
<div className="mx_AuthHeaderLogo">
|
||||||
<img src={LOGO_URI} alt="Riot" />
|
<img src={LOGO_URI} alt="Riot" />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
}
|
||||||
});
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user