Skip to content

Commit

Permalink
Merge pull request #273 from xsihe/CenterAlignLoadMore
Browse files Browse the repository at this point in the history
Issue #207: Aligned 'Load more' button to the center
  • Loading branch information
arjunattam committed Apr 21, 2020
2 parents 934f10d + ede5e4c commit c20c7e2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/Homepage/SearchResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,15 @@ class SearchResults extends React.Component {
);
})}
{isPaginated ? (
<Button
size="sm"
variant="outline-secondary"
onClick={() => this.loadMore()}
>
{this.props.loadMoreBtnText}
</Button>
<div className="text-center">
<Button
size="sm"
variant="outline-secondary"
onClick={() => this.loadMore()}
>
{this.props.loadMoreBtnText}
</Button>
</div>
) : null}
</div>
</div>
Expand Down

0 comments on commit c20c7e2

Please sign in to comment.