1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-17 01:17:29 +02:00

feat: define activity labels (#8713)

Now the label for total activities is more correct.


![image](https://github.com/user-attachments/assets/1748cf25-9605-4701-b4ab-6a16e9b760eb)
This commit is contained in:
Jaanus Sellin 2024-11-12 09:51:24 +02:00 committed by GitHub
parent 5f3c83fbbd
commit 76b7b247fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,9 @@ export const ProjectActivity = () => {
data={fullData}
maxLevel={4}
showWeekdayLabels={true}
labels={{
totalCount: '{{count}} activities in the last year',
}}
renderBlock={(block, activity) => (
<Tooltip
title={`${activity.count} activities on ${activity.date}`}