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:
parent
2392e57d2f
commit
2c86d7400a
@ -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}`}>
|
||||
|
@ -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}
|
||||
|
@ -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,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user