Skip to content

Commit

Permalink
Refactor searchOnChange
Browse files Browse the repository at this point in the history
Co-authored-by: Òscar Casajuana <[email protected]>
  • Loading branch information
selankon and elboletaire authored Jun 5, 2024
1 parent 2c3685b commit a7f1148
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/components/Organizations/OrganizationsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ export const OrganizationsFilter = () => {
navigate(getPath())
}, 1000)

const searchOnChange = (event: any) => {
debouncedSearch(event.target.value)
}

return <InputSearch maxW={'300px'} placeholder={t('organizations.search_by_org_id')} onChange={searchOnChange} />
return (
<InputSearch
maxW={'300px'}
placeholder={t('organizations.search_by_org_id')}
onChange={(event: ChangeEvent<HTMLInputElement>) => {

Check failure on line 33 in src/components/Organizations/OrganizationsList.tsx

View workflow job for this annotation

GitHub Actions / build-stg-explorer

Cannot find name 'ChangeEvent'.

Check failure on line 33 in src/components/Organizations/OrganizationsList.tsx

View workflow job for this annotation

GitHub Actions / build-dev-explorer

Cannot find name 'ChangeEvent'.
debouncedSearch(event.target.value)
}}
/>
)
}

export const PaginatedOrganizationsList = () => {
Expand Down

0 comments on commit a7f1148

Please sign in to comment.