Display XP points in stats
This commit is contained in:
parent
2a352f6029
commit
44d408d9e2
|
|
@ -47,6 +47,7 @@ export const WorkoutStats: React.FC<{ workout: Workout }> = ({ workout }) => {
|
||||||
averageIntensity,
|
averageIntensity,
|
||||||
normalizedIntensity,
|
normalizedIntensity,
|
||||||
tss,
|
tss,
|
||||||
|
xp,
|
||||||
zones,
|
zones,
|
||||||
} = stats(workout);
|
} = stats(workout);
|
||||||
|
|
||||||
|
|
@ -65,6 +66,10 @@ export const WorkoutStats: React.FC<{ workout: Workout }> = ({ workout }) => {
|
||||||
value={formatIntensity(normalizedIntensity)}
|
value={formatIntensity(normalizedIntensity)}
|
||||||
/>
|
/>
|
||||||
<StatsLine label="TSS:" value={Math.round(tss)} />
|
<StatsLine label="TSS:" value={Math.round(tss)} />
|
||||||
|
<StatsLine
|
||||||
|
label="Zwift XP:"
|
||||||
|
value={`${xp} (like riding ${Math.ceil(xp / 20)} km)`}
|
||||||
|
/>
|
||||||
</List>
|
</List>
|
||||||
</Section>
|
</Section>
|
||||||
<Section>
|
<Section>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue