Merge pull request #2400 from automatisch/AUT-1494

feat: fix search bar to work in harmony with folders
This commit is contained in:
Ali BARIN
2025-03-20 10:57:23 +01:00
committed by GitHub
2 changed files with 25 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ import FormControl from '@mui/material/FormControl';
import SearchIcon from '@mui/icons-material/Search';
import useFormatMessage from 'hooks/useFormatMessage';
export default function SearchInput({ onChange, defaultValue = '' }) {
export default function SearchInput({ onChange, defaultValue = '', value }) {
const formatMessage = useFormatMessage();
return (
<FormControl variant="outlined" fullWidth>
@@ -16,6 +16,7 @@ export default function SearchInput({ onChange, defaultValue = '' }) {
</InputLabel>
<OutlinedInput
value={value}
defaultValue={defaultValue}
id="search-input"
type="text"
@@ -36,4 +37,5 @@ export default function SearchInput({ onChange, defaultValue = '' }) {
SearchInput.propTypes = {
onChange: PropTypes.func,
defaultValue: PropTypes.string,
value: PropTypes.string,
};