Skip to content

Commit 6ee7e96

Browse files
committed
Show pagination links only if more than 1 page
1 parent d3554ef commit 6ee7e96

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/containers/UsersList.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,15 @@ export class UsersList extends Component {
116116
'No users found.'
117117
)}
118118
</Card.Group>
119-
<PaginationLinks
120-
handlePageSelect={this.handlePageSelect}
121-
firstPage={firstPage}
122-
lastPage={lastPage}
123-
pageCount={pageCount}
124-
selectedPage={selectedPage}
125-
/>
119+
{pageCount !== 1 ? (
120+
<PaginationLinks
121+
handlePageSelect={this.handlePageSelect}
122+
firstPage={firstPage}
123+
lastPage={lastPage}
124+
pageCount={pageCount}
125+
selectedPage={selectedPage}
126+
/>
127+
) : null}
126128
</Grid.Column>
127129
</Grid.Row>
128130
</Grid>

0 commit comments

Comments
 (0)