Skip to content

Commit 18d898c

Browse files
committed
Convert VectorAuthHeaderLogo to modern code style
1 parent 86ced4c commit 18d898c

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

‎src/components/views/auth/VectorAuthHeaderLogo.js‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,18 @@ import PropTypes from 'prop-types';
2222

2323
const LOGO_URI = "themes/riot/img/logos/riot-im-logo-black-text.svg";
2424

25-
module.exports = React.createClass({
26-
displayName: 'VectorAuthHeaderLogo',
27-
statics: {
28-
replaces: 'AuthHeaderLogo',
29-
},
30-
propTypes: {
25+
export default class VectorAuthHeaderLogo extends React.PureComponent {
26+
static replaces = 'AuthHeaderLogo'
27+
28+
static propTypes = {
3129
icon: PropTypes.string,
32-
},
30+
}
3331

34-
render: function() {
32+
render() {
3533
return (
3634
<div className="mx_AuthHeaderLogo">
3735
<img src={LOGO_URI} alt="Riot" />
3836
</div>
3937
);
40-
},
41-
});
38+
}
39+
}

0 commit comments

Comments
 (0)