Removing unused Progresses. Fixing issues reported by React.

This commit is contained in:
Roland 2022-01-31 16:52:22 -07:00
parent 70dc356adc
commit 0bd5d17b46
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
5 changed files with 15 additions and 76 deletions

View file

@ -16,7 +16,7 @@ export const useSearchParam = (key, defaultValue = null) => {
params.append(key, value);
}
history.push({search: params.toString()});
}, [value])
}, [value, history, key])
return [value, setValue];
}
@ -29,13 +29,13 @@ export const useSearch = () => {
const localSearchArchives = async (term) => {
setArchives(null);
const [archives, total] = await searchArchives(0, 6, null, term);
const [archives] = await searchArchives(0, 6, null, term);
setArchives(archives);
}
const localSearchVideos = async (term) => {
setVideos(null);
const [videos, total] = await searchVideos(0, 6, null, term);
const [videos] = await searchVideos(0, 6, null, term);
setVideos(videos);
}