mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
declare recentSearches as unknown array to avoid type error
This commit is contained in:
parent
89a657eec8
commit
29b35d6363
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue