Skip to content

Commit 7b9eb25

Browse files
author
vvo
committed
fix: rename results component to hits
was already hits as a react component
1 parent 397294e commit 7b9eb25

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

example/app.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ instant.addWidget(
1919
);
2020

2121
instant.addWidget(
22-
instantsearch.widgets.results({
23-
container: '#hits',
22+
instantsearch.widgets.hits({
23+
container: '#hits',
24+
2425
templates: {
2526
noResults: require('./templates/no-results.html'),
2627
hit: require('./templates/hit.html')

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
InstantSearch: require('./lib/InstantSearch'),
55
widgets: {
66
searchBox: require('./widgets/search-box/'),
7-
results: require('./widgets/hits/'),
7+
hits: require('./widgets/hits/'),
88
pagination: require('./widgets/pagination/')
99
}
1010
};

0 commit comments

Comments
 (0)