🐛 Corrige l'affichage du graphique de visites (#1023)
parent
ded582e80c
commit
f76f4c6049
|
@ -339,18 +339,16 @@ function LineChartVisits({ periodicity }: LineChartVisitsProps) {
|
|||
/>
|
||||
) : null}
|
||||
<Tooltip content={<CustomTooltip periodicity={periodicity} />} />
|
||||
{weekEndDays.map(days =>
|
||||
days.length === 2 ? (
|
||||
{weekEndDays
|
||||
.filter(days => days.length === 2)
|
||||
.map(days => (
|
||||
<ReferenceArea
|
||||
key={days[0]}
|
||||
x1={days[0]}
|
||||
x2={days[1]}
|
||||
strokeOpacity={0.3}
|
||||
/>
|
||||
) : (
|
||||
<ReferenceArea key={days[0]} x1={days[0]} strokeOpacity={0.3} />
|
||||
)
|
||||
)}
|
||||
))}
|
||||
<Line
|
||||
type="monotone"
|
||||
dataKey="visiteurs"
|
||||
|
|
Loading…
Reference in New Issue