feat(dashboard): Added average distance
This commit is contained in:
parent
7b2b598588
commit
b8de9e0e42
@ -145,6 +145,22 @@
|
|||||||
/></svg
|
/></svg
|
||||||
>
|
>
|
||||||
</StatCard>
|
</StatCard>
|
||||||
|
<StatCard
|
||||||
|
title={$_("average-distance")}
|
||||||
|
value={`${(stats.average_distance / 1000).toFixed(2)} km`}
|
||||||
|
href="#"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
fill="currentColor"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
height="24"
|
||||||
|
width="24"
|
||||||
|
><path d="M0 0h24v24H0z" fill="none" />
|
||||||
|
<path
|
||||||
|
d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"
|
||||||
|
/></svg
|
||||||
|
>
|
||||||
|
</StatCard>
|
||||||
<StatCard
|
<StatCard
|
||||||
title={$_("count_teams")}
|
title={$_("count_teams")}
|
||||||
value={stats.total_teams}
|
value={stats.total_teams}
|
||||||
|
@ -491,5 +491,6 @@
|
|||||||
"you-must-create-at-least-one-card-or-cancel": "Du musst mindestens eine Blankokarte erstellen (oder abbrechen).",
|
"you-must-create-at-least-one-card-or-cancel": "Du musst mindestens eine Blankokarte erstellen (oder abbrechen).",
|
||||||
"zip-postal-code": "Postleitzahl",
|
"zip-postal-code": "Postleitzahl",
|
||||||
"total-donors": "gesamte Sponsor:innen",
|
"total-donors": "gesamte Sponsor:innen",
|
||||||
"total-donation-count": "Gesamte Sponsorings"
|
"total-donation-count": "Gesamte Sponsorings",
|
||||||
|
"average-distance": "Durchschnittliche Strecke/Läufer:in"
|
||||||
}
|
}
|
||||||
|
@ -491,5 +491,6 @@
|
|||||||
"you-must-create-at-least-one-card-or-cancel": "You must create at least one card (or cancel).",
|
"you-must-create-at-least-one-card-or-cancel": "You must create at least one card (or cancel).",
|
||||||
"zip-postal-code": "ZIP/ postal code",
|
"zip-postal-code": "ZIP/ postal code",
|
||||||
"total-donors": "total donors",
|
"total-donors": "total donors",
|
||||||
"total-donation-count": "total donations (count)"
|
"total-donation-count": "total donations (count)",
|
||||||
|
"average-distance": "average distance"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user