declare recentSearches as unknown array to avoid type error

This commit is contained in:
Satindar Dhillon 2022-10-03 08:31:50 -07:00
parent 89a657eec8
commit 29b35d6363

View file

@ -36,7 +36,7 @@ export type LibrarySearchBarProps = {
}
export function LibrarySearchBar(props: LibrarySearchBarProps): JSX.Element {
const [recentSearches, setRecentSearches] = useState(Array<[]>())
const [recentSearches, setRecentSearches] = useState(Array<unknown[]>())
useEffect(() => {
setRecentSearches(Object.values(localStorage))