mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 16:28:43 -03:30
Fix linter errors.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
import { I18n } from '@lingui/react';
|
import { I18n } from '@lingui/react';
|
||||||
import { Trans, t } from '@lingui/macro';
|
import { Trans, t } from '@lingui/macro';
|
||||||
import {
|
import {
|
||||||
@@ -13,13 +14,8 @@ import brandImg from '../../images/tower-logo-white.svg';
|
|||||||
import logoImg from '../../images/tower-logo-login.svg';
|
import logoImg from '../../images/tower-logo-login.svg';
|
||||||
|
|
||||||
import { ConfigContext } from '../context';
|
import { ConfigContext } from '../context';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
class About extends React.Component {
|
class About extends React.Component {
|
||||||
|
|
||||||
constructor(props) {
|
|
||||||
super(props);
|
|
||||||
}
|
|
||||||
|
|
||||||
createSpeechBubble = (version) => {
|
createSpeechBubble = (version) => {
|
||||||
let text = `Tower ${version}`;
|
let text = `Tower ${version}`;
|
||||||
let top = '';
|
let top = '';
|
||||||
@@ -42,13 +38,13 @@ class About extends React.Component {
|
|||||||
onAboutModalClose();
|
onAboutModalClose();
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render () {
|
||||||
const { isOpen } = this.props;
|
const { isOpen } = this.props;
|
||||||
return (
|
return (
|
||||||
<I18n>
|
<I18n>
|
||||||
{({ i18n }) => (
|
{({ i18n }) => (
|
||||||
<ConfigContext.Consumer>
|
<ConfigContext.Consumer>
|
||||||
{({ ansible_version, version }) =>
|
{({ ansible_version, version }) => (
|
||||||
<AboutModal
|
<AboutModal
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
onClose={this.handleModalToggle}
|
onClose={this.handleModalToggle}
|
||||||
@@ -81,7 +77,7 @@ class About extends React.Component {
|
|||||||
</TextList>
|
</TextList>
|
||||||
</TextContent>
|
</TextContent>
|
||||||
</AboutModal>
|
</AboutModal>
|
||||||
}
|
)}
|
||||||
</ConfigContext.Consumer>
|
</ConfigContext.Consumer>
|
||||||
)}
|
)}
|
||||||
</I18n>
|
</I18n>
|
||||||
|
|||||||
Reference in New Issue
Block a user