mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Fixes linting issues
This commit is contained in:
parent
9170aa184a
commit
b570c8ad2a
@ -1,4 +1,4 @@
|
||||
import React, { Fragment } from 'react';
|
||||
import React from 'react';
|
||||
import { node, bool } from 'prop-types';
|
||||
import { TextListItem, TextListItemVariants } from '@patternfly/react-core';
|
||||
import styled from 'styled-components';
|
||||
@ -25,14 +25,18 @@ const DetailValue = styled(({ fullWidth, ...props }) => (
|
||||
`}
|
||||
`;
|
||||
|
||||
const Detail = ({ label, value, fullWidth, className}) => {
|
||||
const Detail = ({ label, value, fullWidth, className }) => {
|
||||
if (!value && typeof value !== 'number') {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<DetailName className={className} component={TextListItemVariants.dt} fullWidth={fullWidth}>
|
||||
<DetailName
|
||||
className={className}
|
||||
component={TextListItemVariants.dt}
|
||||
fullWidth={fullWidth}
|
||||
>
|
||||
{label}
|
||||
</DetailName>
|
||||
<DetailValue
|
||||
|
||||
@ -164,8 +164,7 @@ class JobTemplateDetail extends Component {
|
||||
);
|
||||
|
||||
const renderMissingDataDetail = value => (
|
||||
|
||||
<MissingDetail label={value} value={i18n._(t`Deleted`)} />
|
||||
<MissingDetail label={value} value={i18n._(t`Deleted`)} />
|
||||
);
|
||||
|
||||
const inventoryValue = (kind, id) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user