mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
remove duplicate type declaration; lint fixes
This commit is contained in:
@@ -10,7 +10,14 @@ import {
|
|||||||
import DataListRadio from '@components/DataListRadio';
|
import DataListRadio from '@components/DataListRadio';
|
||||||
import VerticalSeparator from '../VerticalSeparator';
|
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;
|
const CheckboxRadio = isRadio ? DataListRadio : DataListCheck;
|
||||||
return (
|
return (
|
||||||
<DataListItem key={itemId} aria-labelledby={`check-action-item-${itemId}`}>
|
<DataListItem key={itemId} aria-labelledby={`check-action-item-${itemId}`}>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ function DataListRadio({
|
|||||||
<input
|
<input
|
||||||
{...props}
|
{...props}
|
||||||
type="radio"
|
type="radio"
|
||||||
onChange={event => onChange(event.currentTarget.checked, event) }
|
onChange={event => onChange(event.currentTarget.checked, event)}
|
||||||
aria-invalid={!isValid}
|
aria-invalid={!isValid}
|
||||||
disabled={isDisabled}
|
disabled={isDisabled}
|
||||||
checked={isChecked || checked}
|
checked={isChecked || checked}
|
||||||
|
|||||||
@@ -78,7 +78,18 @@ export const Project = shape({
|
|||||||
|
|
||||||
export const Inventory = shape({
|
export const Inventory = shape({
|
||||||
id: number.isRequired,
|
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({
|
export const InstanceGroup = shape({
|
||||||
@@ -123,19 +134,3 @@ export const Job = shape({
|
|||||||
extra_vars: string,
|
extra_vars: string,
|
||||||
artifacts: shape({}),
|
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,
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user