File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
tests/env/react/src/components Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import 'instantsearch.css/themes/algolia-min.css'
22import React from 'react'
33import {
44 InstantSearch ,
5+ InfiniteHits ,
56 SearchBox ,
67 Stats ,
78 Highlight ,
@@ -10,15 +11,11 @@ import {
1011 Configure ,
1112 SortBy ,
1213 Snippet ,
13- Pagination ,
14- Hits ,
1514} from 'react-instantsearch-dom'
1615import { instantMeiliSearch } from '../../../../../src/index'
1716
1817const searchClient = instantMeiliSearch ( 'http://localhost:7700' , 'masterKey' , {
1918 primaryKey : 'id' ,
20- finitePagination : true ,
21- keepZeroFacets : true ,
2219} )
2320
2421const SingleIndex = ( ) => (
@@ -61,15 +58,14 @@ const SingleIndex = () => (
6158 < h2 > Misc</ h2 >
6259 < RefinementList attribute = "misc" />
6360 < Configure
64- hitsPerPage = { 4 }
61+ hitsPerPage = { 6 }
6562 attributesToSnippet = { [ 'description:50' ] }
6663 snippetEllipsisText = { '...' }
6764 />
6865 </ div >
6966 < div className = "right-panel" >
7067 < SearchBox />
71- < Hits hitComponent = { Hit } />
72- < Pagination />
68+ < InfiniteHits hitComponent = { Hit } />
7369 </ div >
7470 </ InstantSearch >
7571 </ div >
You can’t perform that action at this time.
0 commit comments