-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Hits): limit the hitComponent to be only a function (#1912)
- Loading branch information
Showing
3 changed files
with
12 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 6 additions & 18 deletions
24
packages/react-instantsearch/src/components/__snapshots__/Hits.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
exports[`Hits accepts a hitComponent prop 1`] = ` | ||
<div | ||
className="ais-Hits__root"> | ||
<Hit | ||
hit={ | ||
Object { | ||
"objectID": 0, | ||
} | ||
} /> | ||
<Hit | ||
hit={ | ||
Object { | ||
"objectID": 1, | ||
} | ||
} /> | ||
<Hit | ||
hit={ | ||
Object { | ||
"objectID": 2, | ||
} | ||
} /> | ||
<div | ||
id={0} /> | ||
<div | ||
id={1} /> | ||
<div | ||
id={2} /> | ||
</div> | ||
`; |