diff --git a/webclient/src/pages/Results.js b/webclient/src/pages/Results.js index a006b76..8a707a5 100644 --- a/webclient/src/pages/Results.js +++ b/webclient/src/pages/Results.js @@ -55,6 +55,13 @@ class Results extends React.Component { const stories = this.state.stories; const error = this.state.error; + const search = this.props.location.search; + const params = new URLSearchParams(search); + + const q = params.get('q') || ''; + const skip = params.get('skip') || 0; + const limit = params.get('limit') || 20; + return (
@@ -71,6 +78,11 @@ class Results extends React.Component { :

loading...

} + +
+ {Number(skip) > 0 && Previous} + {stories.length == Number(limit) && Next} +
); }