1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

remove duplicate type declaration; lint fixes

This commit is contained in:
Keith Grant 2019-07-23 12:22:44 -07:00
parent 2392e57d2f
commit 2c86d7400a
3 changed files with 21 additions and 19 deletions

View File

@ -10,7 +10,14 @@ import {
import DataListRadio from '@components/DataListRadio';
import VerticalSeparator from '../VerticalSeparator';
const CheckboxListItem = ({ itemId, name, label, isSelected, onSelect, isRadio }) => {
const CheckboxListItem = ({
itemId,
name,
label,
isSelected,
onSelect,
isRadio,
}) => {
const CheckboxRadio = isRadio ? DataListRadio : DataListCheck;
return (
<DataListItem key={itemId} aria-labelledby={`check-action-item-${itemId}`}>

View File

@ -16,7 +16,7 @@ function DataListRadio({
<input
{...props}
type="radio"
onChange={event => onChange(event.currentTarget.checked, event) }
onChange={event => onChange(event.currentTarget.checked, event)}
aria-invalid={!isValid}
disabled={isDisabled}
checked={isChecked || checked}

View File

@ -78,7 +78,18 @@ export const Project = shape({
export const Inventory = shape({
id: number.isRequired,
name: string.isRequired,
name: string,
description: string,
groups_with_active_failures: number,
has_active_failures: bool,
has_inventory_sources: bool,
hosts_with_active_failures: number,
inventory_sources_with_failures: number,
kind: string,
organization_id: number,
total_groups: number,
total_hosts: number,
total_inventory_sources: number,
});
export const InstanceGroup = shape({
@ -123,19 +134,3 @@ export const Job = shape({
extra_vars: string,
artifacts: shape({}),
});
export const Inventory = shape({
id: number.isRequired,
description: string,
groups_with_active_failures: number,
has_active_failures: bool,
has_inventory_sources: bool,
hosts_with_active_failures: number,
inventory_sources_with_failures: number,
kind: string,
name: string,
organization_id: number,
total_groups: number,
total_hosts: number,
total_inventory_sources: number,
});