Skip to content

Commit d6419ae

Browse files
committed
Fix react playground
1 parent 03f45d9 commit d6419ae

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

playgrounds/react/src/App.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ body {
3030
margin: 0 auto;
3131
}
3232

33-
.ais-Hits-item {
33+
.ais-Hits-item,
34+
.ais-InfiniteHits-item {
3435
margin-bottom: 1em;
3536
width: calc(50% - 1rem);
3637
}
3738

38-
.ais-Hits-item img {
39+
.ais-Hits-item img,
40+
.ais-InfiniteHits-item img {
3941
margin-right: 1em;
4042
width: 100%;
4143
height: 100%;

playgrounds/react/src/App.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import 'instantsearch.css/themes/algolia-min.css'
22
import React, { Component } from 'react'
33
import {
44
InstantSearch,
5-
Hits,
5+
InfiniteHits,
66
SearchBox,
7-
Pagination,
87
Stats,
98
Highlight,
109
ClearRefinements,
@@ -57,8 +56,7 @@ class App extends Component {
5756
</div>
5857
<div className="right-panel">
5958
<SearchBox />
60-
<Hits hitComponent={Hit} />
61-
<Pagination showLast={true} />
59+
<InfiniteHits hitComponent={Hit} />
6260
</div>
6361
</InstantSearch>
6462
</div>

0 commit comments

Comments
 (0)