Commit 24675834 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

fix(analysis): Show no data if no enedis analysis

parent c1412a3a
......@@ -123,13 +123,17 @@ const ElecHalfHourMonthlyAnalysis: React.FC<ElecHalfHourMonthlyAnalysisProps> =
</div>
{!isLoading ? (
<>
{monthDataloads && (
{monthDataloads ? (
<ElecHalfHourChart
dataLoad={
isWeekend ? monthDataloads.weekend : monthDataloads.week
}
isWeekend={isWeekend}
/>
) : (
<p className={`text-20-bold no_data`}>
{t('analysis.no_data')}
</p>
)}
{enedisAnalysisValues && (
<div className="min-max">
......
......@@ -48,6 +48,10 @@
.loader-container {
text-align: center;
}
.no_data {
text-align: center;
color: white;
}
}
.graph-elec-half-hour {
height: 13rem;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment