mirror of
https://github.com/ansible/awx.git
synced 2026-04-20 09:20:25 -02:30
Integrate proptypes for our shared components.
- Fix unit tests. - Fix linter errors.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import {
|
||||
Chip
|
||||
} from '@patternfly/react-core';
|
||||
@@ -70,4 +71,16 @@ class SelectedList extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
SelectedList.propTypes = {
|
||||
label: PropTypes.string,
|
||||
onRemove: PropTypes.func.isRequired,
|
||||
selected: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
showOverflowAfter: PropTypes.number,
|
||||
};
|
||||
|
||||
SelectedList.defaultProps = {
|
||||
label: 'Selected',
|
||||
showOverflowAfter: 5,
|
||||
};
|
||||
|
||||
export default SelectedList;
|
||||
|
||||
Reference in New Issue
Block a user