Skip to content

Commit

Permalink
fix(cve-table): Move pagination to the footer where it's supposed to be
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridostal committed Sep 27, 2018
1 parent 7d5b254 commit b1b3c40
Showing 1 changed file with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,24 +87,23 @@ class VulnerabilitiesCveTable extends React.Component {
<SearchIcon style={{ paddingTop: '4px' }} />
</GridItem>

<GridItem span={12}>
<Pagination
numberOfItems={
this.state.filterValue === '' || this.state.cveList.length === 11
? 112210
: this.state.cveList.length
}
itemsPerPage={10}
pages={2500}
/>
</GridItem>

<GridItem span={12}>
<Table
header={['Impact', 'Synopsis', 'Public date', 'Affected Systems', 'Total Risk', 'Description']}
rows={this.state.cveList}
onRowClick={(event, key) => this.handleRedirect(key)}
onSort={(event, key, value) => this.sort(key, value)}
footer={
<Pagination
numberOfItems={
this.state.filterValue === '' || this.state.cveList.length === 11
? 112210
: this.state.cveList.length
}
itemsPerPage={10}
pages={2500}
/>
}
/>
</GridItem>
</Grid>
Expand Down

0 comments on commit b1b3c40

Please sign in to comment.