mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 18:51:06 -03:30
Fix linting
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import React, { Fragment } from 'react';
|
import React, { Fragment } from 'react';
|
||||||
import { node, object, string } from 'prop-types';
|
import { node, number, shape, string } from 'prop-types';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import styled, { keyframes } from 'styled-components';
|
import styled, { keyframes } from 'styled-components';
|
||||||
import { Tooltip } from '@patternfly/react-core';
|
import { Tooltip } from '@patternfly/react-core';
|
||||||
@@ -100,7 +100,10 @@ const JobStatusIcon = ({ job, link, tooltip, ...props }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
JobStatusIcon.propTypes = {
|
JobStatusIcon.propTypes = {
|
||||||
job: object.isRequired,
|
job: shape({
|
||||||
|
id: number.isRequired,
|
||||||
|
status: string.isRequired,
|
||||||
|
}).isRequired,
|
||||||
link: string,
|
link: string,
|
||||||
tooltip: node,
|
tooltip: node,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,9 +6,11 @@ import styled from 'styled-components';
|
|||||||
import { t } from '@lingui/macro';
|
import { t } from '@lingui/macro';
|
||||||
import { JOB_TYPE_URL_SEGMENTS } from '../../constants';
|
import { JOB_TYPE_URL_SEGMENTS } from '../../constants';
|
||||||
|
|
||||||
|
/* eslint-disable react/jsx-pascal-case */
|
||||||
const JobStatusIcon = styled(props => <_JobStatusIcon {...props} />)`
|
const JobStatusIcon = styled(props => <_JobStatusIcon {...props} />)`
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
`;
|
`;
|
||||||
|
/* eslint-enable react/jsx-pascal-case */
|
||||||
|
|
||||||
const Sparkline = ({ i18n, jobs }) => {
|
const Sparkline = ({ i18n, jobs }) => {
|
||||||
const generateTooltip = job => (
|
const generateTooltip = job => (
|
||||||
|
|||||||
Reference in New Issue
Block a user