Skip to content

Commit

Permalink
examples(web): update SSR example to use Next.JS 14
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthlatest committed Mar 27, 2024
1 parent 3a4a72f commit ea70d22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/web/examples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@appbaseio/reactivesearch": "4.2.2",
"emotion-server": "^10.0.27",
"moment": "^2.29.4",
"next": "^13.0.7",
"next": "^14.0.0",
"prop-types": "^15.6.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
13 changes: 12 additions & 1 deletion packages/web/examples/ssr/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
ReactiveBase,
ReactiveList,
SearchBox,
NumberBox,
SelectedFilters,
getServerState,
RangeSlider,
Expand Down Expand Up @@ -87,6 +88,16 @@ function Main(props) {
<i className="fa fa-star" /> Ratings
</b>
</div>
<NumberBox
componentId="VoteAverageNB"
dataField="vote_average"
data={{ start: 0, end: 10, label: 'Votes' }}
react={{
and: ['SearchSensor', 'results', 'GenresList'],
}}
URLParams
className="review-filter"
/>
<RangeSlider
componentId="VoteAverage"
dataField="vote_average"
Expand Down Expand Up @@ -205,7 +216,7 @@ function Main(props) {
)}
URLParams
react={{
and: ['SearchSensor', 'VoteAverage', 'GenresList'],
and: ['SearchSensor', 'VoteAverage', 'GenresList', 'VoteAverageNB'],
}}
innerClass={{
resultStats: 'result-stats',
Expand Down

0 comments on commit ea70d22

Please sign in to comment.