init handleChange search

This commit is contained in:
ronronscelestes 2021-11-05 11:38:00 +01:00
parent b40aa45cf5
commit c921626baf
2 changed files with 4 additions and 3 deletions

View File

@ -56,7 +56,7 @@ export const BrowseStep = ({
<Searchbar
name="searchbar"
onClear={() => {}}
onChange={onChangeSearch}
onChange={e => onChangeSearch(e.target.value)}
clearLabel="Clearing the asset search"
size="S"
>

View File

@ -7,6 +7,7 @@ const useModalQueryParams = () => {
page: 1,
sort: 'updatedAt:DESC',
pageSize: 10,
search: '',
});
const handleChangePageSize = pageSize => {
@ -21,8 +22,8 @@ const useModalQueryParams = () => {
setQueryObject(prev => ({ ...prev, sort }));
};
const handleChangeSearch = () => {
console.log('change search');
const handleChangeSearch = value => {
console.log(value);
};
const handleSubmitSearch = e => {