mirror of
https://github.com/vercel/commerce.git
synced 2025-05-13 21:27:50 +00:00
fixes types
This commit is contained in:
parent
4e25183283
commit
c5c324fa74
@ -26,7 +26,7 @@ export default async function SearchPage({
|
||||
})
|
||||
|
||||
const resultsText = products.count > 1 ? 'results' : 'result';
|
||||
const docs = products.hits.map((hit) => hit.document) as Product[];
|
||||
const docs = products.hits.map((hit: any) => hit.document) as Product[];
|
||||
|
||||
return (
|
||||
<>
|
||||
|
@ -14,7 +14,7 @@ export default function Search() {
|
||||
const router = useRouter();
|
||||
const searchParams = useSearchParams();
|
||||
const [searchValue, setSearchValue] = useState('');
|
||||
const [searchResults, setSearchResults] = useState<Results>();
|
||||
const [searchResults, setSearchResults] = useState<Results<any>>();
|
||||
const isSearchPage = usePathname() === '/search'
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user