Commit e50a87ae by Peter Holmberg

using constant

parent 327cdf34
...@@ -163,7 +163,7 @@ class Graph extends Component<any, any> { ...@@ -163,7 +163,7 @@ class Graph extends Component<any, any> {
!this.state.showAllTimeSeries && ( !this.state.showAllTimeSeries && (
<div className="time-series-disclaimer"> <div className="time-series-disclaimer">
<i className="fa fa-fw fa-warning disclaimer-icon" /> <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 ${ <span className="show-all-time-series" onClick={this.onShowAllTimeSeries}>{`Show all ${
this.props.data.length this.props.data.length
}`}</span> }`}</span>
......
...@@ -468,8 +468,7 @@ exports[`Render should render component with disclaimer 1`] = ` ...@@ -468,8 +468,7 @@ exports[`Render should render component with disclaimer 1`] = `
<i <i
className="fa fa-fw fa-warning disclaimer-icon" className="fa fa-fw fa-warning disclaimer-icon"
/> />
Showing only 20 time series. Showing only 20 time series.
<span <span
className="show-all-time-series" className="show-all-time-series"
onClick={[Function]} onClick={[Function]}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment