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'
|
||||
|
|
|
@ -17,14 +17,11 @@ const Settings = ({
|
|||
const status = settings.uploadingCert ? 'Uploading...' : 'Upload';
|
||||
const error = settings.certError;
|
||||
|
||||
const handleInstallClick = useCallback(
|
||||
async () => {
|
||||
installable.prompt();
|
||||
await installable.userChoice;
|
||||
onInstall();
|
||||
},
|
||||
[installable]
|
||||
);
|
||||
const handleInstallClick = useCallback(async () => {
|
||||
installable.prompt();
|
||||
await installable.userChoice;
|
||||
onInstall();
|
||||
}, [installable]);
|
||||
|
||||
return (
|
||||
<div className="settings-container">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue