Update dependencies
This commit is contained in:
parent
613d9fca6e
commit
71bfe92dae
25 changed files with 1452 additions and 1885 deletions
|
@ -4,14 +4,11 @@ import SearchResult from './SearchResult';
|
|||
const Search = ({ search, onSearch }) => {
|
||||
const inputEl = useRef();
|
||||
|
||||
useEffect(
|
||||
() => {
|
||||
if (search.show) {
|
||||
inputEl.current.focus();
|
||||
}
|
||||
},
|
||||
[search.show]
|
||||
);
|
||||
useEffect(() => {
|
||||
if (search.show) {
|
||||
inputEl.current.focus();
|
||||
}
|
||||
}, [search.show]);
|
||||
|
||||
const style = {
|
||||
display: search.show ? 'block' : 'none'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue