From 88066eb93b295b6cf9869054e419da9ac6e33156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Boixader=20G=C3=BCell?= Date: Sun, 14 Jan 2024 18:32:29 +0100 Subject: [PATCH] chore: proptypes --- src/guillo-gmi/components/input/search_input.js | 14 +++++++++++--- .../components/input/search_input_list.js | 15 ++++++++++++--- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/src/guillo-gmi/components/input/search_input.js b/src/guillo-gmi/components/input/search_input.js index d2487f4..1fd3ff1 100644 --- a/src/guillo-gmi/components/input/search_input.js +++ b/src/guillo-gmi/components/input/search_input.js @@ -189,7 +189,6 @@ export const SearchInput = ({ } useEffect(() => { - console.log('update labels') if (value) { inicializeLabels() } else { @@ -321,8 +320,17 @@ export const SearchInput = ({ SearchInput.propTypes = { onChange: PropTypes.func, value: PropTypes.string, - client: PropTypes.object, path: PropTypes.string, - PageSize: PropTypes.number, btnClass: PropTypes.string, + error: PropTypes.string, + errorZoneClassName: PropTypes.string, + traversal: PropTypes.object, + qs: PropTypes.array, + queryCondition: PropTypes.string, + dataTestWrapper: PropTypes.string, + dataTestSearchInput: PropTypes.string, + dataTestItem: PropTypes.string, + renderTextItemOption: PropTypes.func, + typeNameQuery: PropTypes.string, + labelProperty: PropTypes.string, } diff --git a/src/guillo-gmi/components/input/search_input_list.js b/src/guillo-gmi/components/input/search_input_list.js index 7e4abd7..8d744dc 100644 --- a/src/guillo-gmi/components/input/search_input_list.js +++ b/src/guillo-gmi/components/input/search_input_list.js @@ -343,9 +343,18 @@ export const SearchInputList = ({ SearchInputList.propTypes = { onChange: PropTypes.func, - options: PropTypes.arrayOf(PropTypes.string), - client: PropTypes.object, path: PropTypes.string, - PageSize: PropTypes.number, btnClass: PropTypes.string, + dataTestWrapper: PropTypes.string, + dataTestSearchInput: PropTypes.string, + dataTestItem: PropTypes.string, + renderTextItemOption: PropTypes.func, + typeNameQuery: PropTypes.string, + labelProperty: PropTypes.string, + error: PropTypes.string, + errorZoneClassName: PropTypes.string, + traversal: PropTypes.object, + path: PropTypes.string, + qs: PropTypes.array, + queryCondition: PropTypes.string, }