Avoid missing key warnings
This commit is contained in:
parent
859842b981
commit
f7147d0919
|
|
@ -24,7 +24,7 @@ export const WorkoutPlot: React.FC<{ intervals: Interval[] }> = ({ intervals })
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Plot>
|
<Plot>
|
||||||
{ intervals.map((interval) => toBarProps(interval, workoutDuration, maxIntensity)).map((props) => (<Bar {...props} />)) }
|
{ intervals.map((interval) => toBarProps(interval, workoutDuration, maxIntensity)).map((props, i) => (<Bar key={i} {...props} />)) }
|
||||||
</Plot>
|
</Plot>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ export const WorkoutStats: React.FC<{workout: Workout}> = ({ workout }) => {
|
||||||
<Section>
|
<Section>
|
||||||
<Header>Zone distribution</Header>
|
<Header>Zone distribution</Header>
|
||||||
<ZoneList>
|
<ZoneList>
|
||||||
{zones.map(zone => (<StatsLine label={zone.name} value={formatDuration(zone.duration)} />)) }
|
{zones.map(zone => (<StatsLine key={zone.name} label={zone.name} value={formatDuration(zone.duration)} />)) }
|
||||||
</ZoneList>
|
</ZoneList>
|
||||||
</Section>
|
</Section>
|
||||||
</Container>
|
</Container>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue