Skip to content

Commit

Permalink
rollback changes on singleIndex playground
Browse files Browse the repository at this point in the history
  • Loading branch information
bidoubiwa committed Dec 13, 2022
1 parent 50dd885 commit cf5ffe0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/env/react/src/components/SingleIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ import {
Configure,
SortBy,
Snippet,
Pagination,
Hits,
InfiniteHits,
} from 'react-instantsearch-dom'
import { instantMeiliSearch } from '../../../../../src/index'

const searchClient = instantMeiliSearch('http://localhost:7700', 'masterKey', {
primaryKey: 'id',
finitePagination: true,
keepZeroFacets: true,
})

const SingleIndex = () => (
Expand Down Expand Up @@ -61,15 +58,14 @@ const SingleIndex = () => (
<h2>Misc</h2>
<RefinementList attribute="misc" />
<Configure
hitsPerPage={4}
hitsPerPage={6}
attributesToSnippet={['description:50']}
snippetEllipsisText={'...'}
/>
</div>
<div className="right-panel">
<SearchBox />
<Hits hitComponent={Hit} />
<Pagination />
<InfiniteHits hitComponent={Hit} />
</div>
</InstantSearch>
</div>
Expand Down

0 comments on commit cf5ffe0

Please sign in to comment.