using constant

This commit is contained in:
Peter Holmberg 2018-09-28 12:58:01 +02:00
parent 327cdf34d5
commit e50a87aec9
2 changed files with 2 additions and 3 deletions

View File

@ -163,7 +163,7 @@ class Graph extends Component<any, any> {
!this.state.showAllTimeSeries && (
<div className="time-series-disclaimer">
<i className="fa fa-fw fa-warning disclaimer-icon" />
Showing only 20 time series.{' '}
{`Showing only ${MAX_NUMBER_OF_TIME_SERIES} time series. `}
<span className="show-all-time-series" onClick={this.onShowAllTimeSeries}>{`Show all ${
this.props.data.length
}`}</span>

View File

@ -468,8 +468,7 @@ exports[`Render should render component with disclaimer 1`] = `
<i
className="fa fa-fw fa-warning disclaimer-icon"
/>
Showing only 20 time series.
Showing only 20 time series.
<span
className="show-all-time-series"
onClick={[Function]}