Skip to content

Commit 0d1b9ea

Browse files
committed
rollback changes on singleIndex playground
1 parent 50dd885 commit 0d1b9ea

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/env/react/src/components/SingleIndex.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import 'instantsearch.css/themes/algolia-min.css'
22
import React from 'react'
33
import {
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'
1615
import { instantMeiliSearch } from '../../../../../src/index'
1716

1817
const searchClient = instantMeiliSearch('http://localhost:7700', 'masterKey', {
1918
primaryKey: 'id',
20-
finitePagination: true,
21-
keepZeroFacets: true,
2219
})
2320

2421
const 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>

0 commit comments

Comments
 (0)