mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 18:51:06 -03:30
used lint
This commit is contained in:
@@ -6,7 +6,7 @@ import { formatDateString } from '@util/dates';
|
|||||||
import Detail from './Detail';
|
import Detail from './Detail';
|
||||||
import { SummaryFieldUser } from '../../types';
|
import { SummaryFieldUser } from '../../types';
|
||||||
|
|
||||||
function UserDateDetail({ label, date, user, dataCy = null}) {
|
function UserDateDetail({ label, date, user, dataCy = null }) {
|
||||||
const dateStr = formatDateString(date);
|
const dateStr = formatDateString(date);
|
||||||
const username = user ? user.username : '';
|
const username = user ? user.username : '';
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -79,12 +79,12 @@ function HostDetail({ host, i18n, onUpdateHost }) {
|
|||||||
css="padding-bottom: 40px"
|
css="padding-bottom: 40px"
|
||||||
/>
|
/>
|
||||||
<DetailList gutter="sm">
|
<DetailList gutter="sm">
|
||||||
<Detail label={i18n._(t`Name`)} value={name} dataCy="host-name"/>
|
<Detail label={i18n._(t`Name`)} value={name} dataCy="host-name" />
|
||||||
<Detail
|
<Detail
|
||||||
value={<Sparkline jobs={recentPlaybookJobs} />}
|
value={<Sparkline jobs={recentPlaybookJobs} />}
|
||||||
label={i18n._(t`Activity`)}
|
label={i18n._(t`Activity`)}
|
||||||
/>
|
/>
|
||||||
<Detail label={i18n._(t`Description`)} value={description}/>
|
<Detail label={i18n._(t`Description`)} value={description} />
|
||||||
{inventory && (
|
{inventory && (
|
||||||
<Detail
|
<Detail
|
||||||
label={i18n._(t`Inventory`)}
|
label={i18n._(t`Inventory`)}
|
||||||
|
|||||||
Reference in New Issue
Block a user