fix(common): Add Default Text to Heatmap Legend (#16802)
With the recent Reactifying of the profile page, I noticed that some of the calendar heatmap legend text was missing. This fix changes the text from the current ['less', '', '', 'more'] back to ['0 items', '1 item', '2 items', '3 or more items']. BREAKING CHANGE: None
This commit is contained in:
committed by
Stuart Taylor
parent
12cf871249
commit
1ae4bf363c
@ -55,7 +55,7 @@ class HeatMap extends Component {
|
||||
const today = new Date();
|
||||
const cal = new CalHeatMap();
|
||||
const rectSelector = '#cal-heatmap > svg > svg.graph-legend > g > rect.r';
|
||||
const calLegendTitles = ['less', '', '', 'more'];
|
||||
const calLegendTitles = ['0 items', '1 item', '2 items', '3 or more items'];
|
||||
const firstTS = Object.keys(calendar)[0];
|
||||
let start = new Date(firstTS * 1000);
|
||||
const monthsSinceFirstActive = differenceInCalendarMonths(
|
||||
|
Reference in New Issue
Block a user