Skip to content

Commit 232dde5

Browse files
committed
Set bills search to 20 results per page
1 parent e6aa6e0 commit 232dde5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

components/search/bills/BillSearch.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import {
55
InstantSearch,
66
Pagination,
77
SearchBox,
8+
useConfigure,
9+
UseConfigureProps,
810
useInstantSearch
911
} from "react-instantsearch"
1012
import { createInstantSearchRouterNext } from "react-instantsearch-router-nextjs"
@@ -175,6 +177,7 @@ const Layout: FC<
175177

176178
return (
177179
<SearchContainer>
180+
<BillSearchConfigure />
178181
<ControlsBar>
179182
<SearchBox placeholder="Search For Bills" />
180183
<RefinementRow>
@@ -199,3 +202,11 @@ const Layout: FC<
199202
</SearchContainer>
200203
)
201204
}
205+
206+
const BillSearchConfigure = () => {
207+
const configure: UseConfigureProps & { hitsPerPage: number } = {
208+
hitsPerPage: 20
209+
}
210+
useConfigure(configure)
211+
return null
212+
}

0 commit comments

Comments
 (0)