Skip to content

Commit

Permalink
fix: search fields
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jan 10, 2024
1 parent 11ce4ca commit 581949c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/layout/drawer/Areas.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function AreaDropDown() {
<ListItemText primary={t('reset')} />
</ListItemButton>
<ListItem>
<GenericSearch field="filters.scanAreas.filter.search" />
<GenericSearch field="filters.scanAreas.filter.search" label="search" />
</ListItem>
<ListItem>
<TableContainer
Expand Down
4 changes: 2 additions & 2 deletions src/components/layout/drawer/ItemSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export const GenericSearch = React.forwardRef(
)
/** @type {import('@mui/material').TextFieldProps['onChange']} */
const onChange = React.useCallback(
(e) => setValue(e.target.value || ''),
[setValue],
(e) => setSearchValue(e.target.value || ''),
[setSearchValue],
)
return (
<TextField
Expand Down

0 comments on commit 581949c

Please sign in to comment.