From e8924e8f6f7c02c20e1659c4edf8dcb45bfdcd53 Mon Sep 17 00:00:00 2001 From: kialam Date: Wed, 2 Jan 2019 09:19:11 -0700 Subject: [PATCH] Fix linter errors. --- src/components/About.jsx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/components/About.jsx b/src/components/About.jsx index 59917efb59..18c986fc7d 100644 --- a/src/components/About.jsx +++ b/src/components/About.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import PropTypes from 'prop-types'; import { I18n } from '@lingui/react'; import { Trans, t } from '@lingui/macro'; import { @@ -13,13 +14,8 @@ import brandImg from '../../images/tower-logo-white.svg'; import logoImg from '../../images/tower-logo-login.svg'; import { ConfigContext } from '../context'; -import PropTypes from 'prop-types'; + class About extends React.Component { - - constructor(props) { - super(props); - } - createSpeechBubble = (version) => { let text = `Tower ${version}`; let top = ''; @@ -42,13 +38,13 @@ class About extends React.Component { onAboutModalClose(); }; - render() { + render () { const { isOpen } = this.props; return ( {({ i18n }) => ( - {({ ansible_version, version }) => + {({ ansible_version, version }) => ( - } + )} )}