Commit c6f76811 authored by Ray Schamp's avatar Ray Schamp

Fix merge issues

parent 5513b6a7
...@@ -81,7 +81,7 @@ class Search extends React.Component { ...@@ -81,7 +81,7 @@ class Search extends React.Component {
const loadedSoFar = this.state.loaded; const loadedSoFar = this.state.loaded;
Array.prototype.push.apply(loadedSoFar, body); Array.prototype.push.apply(loadedSoFar, body);
const currentOffset = this.state.offset + this.state.loadNumber; const currentOffset = this.state.offset + this.state.loadNumber;
var willLoadMore = body.length === this.props.loadNumber; const willLoadMore = body.length === this.state.loadNumber;
this.setState({ this.setState({
loaded: loadedSoFar, loaded: loadedSoFar,
...@@ -123,8 +123,8 @@ class Search extends React.Component { ...@@ -123,8 +123,8 @@ class Search extends React.Component {
<Grid <Grid
cards cards
showAvatar showAvatar
itemType={this.state.tab}
items={this.state.loaded} items={this.state.loaded}
itemType={this.props.tab}
showFavorites={false} showFavorites={false}
showLoves={false} showLoves={false}
showViews={false} showViews={false}
...@@ -135,8 +135,11 @@ class Search extends React.Component { ...@@ -135,8 +135,11 @@ class Search extends React.Component {
searchAction = <h2 className="search-prompt"><FormattedMessage id="general.searchEmpty" /></h2>; searchAction = <h2 className="search-prompt"><FormattedMessage id="general.searchEmpty" /></h2>;
} else if (this.state.loadMore) { } else if (this.state.loadMore) {
searchAction = ( searchAction = (
<Button onClick={this.getSearchMore} className="white"> <Button
<FormattedMessage id='general.loadMore' /> className="white"
onClick={this.handleGetSearchMore}
>
<FormattedMessage id="general.loadMore" />
</Button> </Button>
); );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment