track search

This commit is contained in:
mantikoros 2022-08-10 11:50:21 -05:00
parent 521c479abf
commit 52a2a3d842

View File

@ -236,7 +236,7 @@ export function ContractSearch(props: {
if (newFilter === filter) return if (newFilter === filter) return
setFilter(newFilter) setFilter(newFilter)
setPage(0) setPage(0)
trackCallback('select search filter', { filter: newFilter }) track('select search filter', { filter: newFilter })
} }
const selectSort = (newSort: Sort) => { const selectSort = (newSort: Sort) => {
@ -244,7 +244,7 @@ export function ContractSearch(props: {
setPage(0) setPage(0)
setSort(newSort) setSort(newSort)
track('select sort', { sort: newSort }) track('select search sort', { sort: newSort })
} }
if (IS_PRIVATE_MANIFOLD || process.env.NEXT_PUBLIC_FIREBASE_EMULATE) { if (IS_PRIVATE_MANIFOLD || process.env.NEXT_PUBLIC_FIREBASE_EMULATE) {
@ -263,6 +263,7 @@ export function ContractSearch(props: {
type="text" type="text"
value={query} value={query}
onChange={(e) => updateQuery(e.target.value)} onChange={(e) => updateQuery(e.target.value)}
onBlur={trackCallback('search', { query })}
placeholder={showPlaceHolder ? `Search ${filter} markets` : ''} placeholder={showPlaceHolder ? `Search ${filter} markets` : ''}
className="input input-bordered w-full" className="input input-bordered w-full"
/> />