There was an error while loading. Please reload this page.
1 parent e6aa6e0 commit 232dde5Copy full SHA for 232dde5
1 file changed
components/search/bills/BillSearch.tsx
@@ -5,6 +5,8 @@ import {
5
InstantSearch,
6
Pagination,
7
SearchBox,
8
+ useConfigure,
9
+ UseConfigureProps,
10
useInstantSearch
11
} from "react-instantsearch"
12
import { createInstantSearchRouterNext } from "react-instantsearch-router-nextjs"
@@ -175,6 +177,7 @@ const Layout: FC<
175
177
176
178
return (
179
<SearchContainer>
180
+ <BillSearchConfigure />
181
<ControlsBar>
182
<SearchBox placeholder="Search For Bills" />
183
<RefinementRow>
@@ -199,3 +202,11 @@ const Layout: FC<
199
202
</SearchContainer>
200
203
)
201
204
}
205
+
206
+const BillSearchConfigure = () => {
207
+ const configure: UseConfigureProps & { hitsPerPage: number } = {
208
+ hitsPerPage: 20
209
+ }
210
+ useConfigure(configure)
211
+ return null
212
+}
0 commit comments