moved check from calling component to paginator

This commit is contained in:
Florian Scholdei
2019-04-19 13:23:57 +02:00
parent eb346829d5
commit f209ca665d

View File

@@ -123,7 +123,9 @@ class LinkPaginator extends React.Component<Props> {
}
render() {
const { t } = this.props;
const { collection, t } = this.props;
if(collection) {
return (
<nav className="pagination is-centered" aria-label="pagination">
{this.renderPreviousButton(
@@ -139,6 +141,8 @@ class LinkPaginator extends React.Component<Props> {
</nav>
);
}
return null;
}
}
export default translate("commons")(LinkPaginator);