From 18d898cc1fe5852a8d325c3829722ba3e88ce81f Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 11 Feb 2019 16:14:34 +0000 Subject: [PATCH] Convert VectorAuthHeaderLogo to modern code style --- .../views/auth/VectorAuthHeaderLogo.js | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/components/views/auth/VectorAuthHeaderLogo.js b/src/components/views/auth/VectorAuthHeaderLogo.js index 7a40f44559..38d10044b3 100644 --- a/src/components/views/auth/VectorAuthHeaderLogo.js +++ b/src/components/views/auth/VectorAuthHeaderLogo.js @@ -22,20 +22,18 @@ import PropTypes from 'prop-types'; const LOGO_URI = "themes/riot/img/logos/riot-im-logo-black-text.svg"; -module.exports = React.createClass({ - displayName: 'VectorAuthHeaderLogo', - statics: { - replaces: 'AuthHeaderLogo', - }, - propTypes: { - icon: PropTypes.string, - }, +export default class VectorAuthHeaderLogo extends React.PureComponent { + static replaces = 'AuthHeaderLogo' - render: function() { + static propTypes = { + icon: PropTypes.string, + } + + render() { return (
Riot
); - }, -}); + } +}