Skip to content

Commit

Permalink
Add result count
Browse files Browse the repository at this point in the history
  • Loading branch information
danesparza committed Nov 14, 2019
1 parent 33dfa2f commit 2d99ebc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/QuerySeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ import MuiVirtualizedTable from './MuiVirtualizedTable';
const styles = theme => ({
resultHeading: {
paddingTop: 5,
paddingBottom: 5,
paddingLeft: 15,
marginBottom: 0,
},
resultMeta: {
paddingLeft: 15,
paddingBottom: 5,
color: "silver",
}
});

Expand Down Expand Up @@ -65,8 +70,9 @@ class QuerySeries extends Component {
// Display series information:
return (
<React.Fragment>
<h2 className={classes.resultHeading}>{seriesName}</h2>

<h2 className={classes.resultHeading}>{seriesName} </h2>
<div className={classes.resultMeta}> {datarows.length} results</div>

<MuiVirtualizedTable
rowCount={datarows.length}
rowGetter={({ index }) => datarows[index]}
Expand Down

0 comments on commit 2d99ebc

Please sign in to comment.