1- import 'instantsearch.css/themes/algolia-min.css'
2- import React from 'react'
1+ import "instantsearch.css/themes/algolia-min.css" ;
32import {
43 InstantSearch ,
54 InfiniteHits ,
@@ -11,24 +10,24 @@ import {
1110 Configure ,
1211 SortBy ,
1312 Snippet ,
14- } from ' react-instantsearch-dom'
13+ } from " react-instantsearch" ;
1514
16- import ' ./App.css'
17- import { instantMeiliSearch } from ' @meilisearch/instant-meilisearch'
15+ import " ./App.css" ;
16+ import { instantMeiliSearch } from " @meilisearch/instant-meilisearch" ;
1817
1918const { searchClient } = instantMeiliSearch (
20- ' https://ms-adf78ae33284-106.lon.meilisearch.io' ,
21- ' a63da4928426f12639e19d62886f621130f3fa9ff3c7534c5d179f0f51c4f303' ,
19+ " https://ms-adf78ae33284-106.lon.meilisearch.io" ,
20+ " a63da4928426f12639e19d62886f621130f3fa9ff3c7534c5d179f0f51c4f303" ,
2221 {
23- primaryKey : 'id' ,
24- }
25- )
22+ primaryKey : "id" ,
23+ } ,
24+ ) ;
2625
2726const App = ( ) => (
2827 < div className = "ais-InstantSearch" >
2928 < h1 > Meilisearch + React InstantSearch</ h1 >
3029 < h2 >
31- Search in Steam video games{ ' ' }
30+ Search in Steam video games{ " " }
3231 < span role = "img" aria-label = "emoji" >
3332 🎮
3433 </ span >
@@ -44,14 +43,14 @@ const App = () => (
4443 < SortBy
4544 defaultRefinement = "steam-video-games"
4645 items = { [
47- { value : ' steam-video-games' , label : ' Relevant' } ,
46+ { value : " steam-video-games" , label : " Relevant" } ,
4847 {
49- value : ' steam-video-games:recommendationCount:desc' ,
50- label : ' Most Recommended' ,
48+ value : " steam-video-games:recommendationCount:desc" ,
49+ label : " Most Recommended" ,
5150 } ,
5251 {
53- value : ' steam-video-games:recommendationCount:asc' ,
54- label : ' Least Recommended' ,
52+ value : " steam-video-games:recommendationCount:asc" ,
53+ label : " Least Recommended" ,
5554 } ,
5655 ] }
5756 />
@@ -65,8 +64,8 @@ const App = () => (
6564 < RefinementList attribute = "misc" />
6665 < Configure
6766 hitsPerPage = { 6 }
68- attributesToSnippet = { [ ' description:50' ] }
69- snippetEllipsisText = { ' ...' }
67+ attributesToSnippet = { [ " description:50" ] }
68+ snippetEllipsisText = { " ..." }
7069 />
7170 </ div >
7271 < div className = "right-panel" >
@@ -75,7 +74,7 @@ const App = () => (
7574 </ div >
7675 </ InstantSearch >
7776 </ div >
78- )
77+ ) ;
7978
8079const Hit = ( { hit } ) => {
8180 return (
@@ -100,7 +99,7 @@ const Hit = ({ hit }) => {
10099 < b > Recommended:</ b > { hit . recommendationCount }
101100 </ div >
102101 </ div >
103- )
104- }
102+ ) ;
103+ } ;
105104
106- export default App
105+ export default App ;
0 commit comments