mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 14:59:07 +00:00
RelationInput: Relex description and error prop-types
This commit is contained in:
parent
1ae8d9950a
commit
c096ece4db
@ -115,16 +115,18 @@ const ReactQuerySearchResult = PropTypes.shape({
|
|||||||
});
|
});
|
||||||
|
|
||||||
RelationInput.defaultProps = {
|
RelationInput.defaultProps = {
|
||||||
|
description: undefined,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
error: undefined,
|
||||||
relations: [],
|
relations: [],
|
||||||
searchResults: [],
|
searchResults: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
RelationInput.propTypes = {
|
RelationInput.propTypes = {
|
||||||
// eslint-disable-next-line react/no-unused-prop-types
|
// eslint-disable-next-line react/no-unused-prop-types
|
||||||
error: PropTypes.string.isRequired,
|
error: PropTypes.string,
|
||||||
// eslint-disable-next-line react/no-unused-prop-types
|
// eslint-disable-next-line react/no-unused-prop-types
|
||||||
description: PropTypes.string.isRequired,
|
description: PropTypes.string,
|
||||||
// eslint-disable-next-line react/no-unused-prop-types
|
// eslint-disable-next-line react/no-unused-prop-types
|
||||||
disabled: PropTypes.bool,
|
disabled: PropTypes.bool,
|
||||||
id: PropTypes.string.isRequired,
|
id: PropTypes.string.isRequired,
|
||||||
@ -140,6 +142,6 @@ RelationInput.propTypes = {
|
|||||||
onSearchNextPage: PropTypes.func.isRequired,
|
onSearchNextPage: PropTypes.func.isRequired,
|
||||||
placeholder: PropTypes.string.isRequired,
|
placeholder: PropTypes.string.isRequired,
|
||||||
// eslint-disable-next-line react/no-unused-prop-types
|
// eslint-disable-next-line react/no-unused-prop-types
|
||||||
searchResults: PropTypes.arrayOf(ReactQuerySearchResult),
|
searchResults: ReactQuerySearchResult,
|
||||||
relations: ReactQueryRelationResult,
|
relations: ReactQueryRelationResult,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user