Merge pull request #2400 from automatisch/AUT-1494
feat: fix search bar to work in harmony with folders
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user