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> = ...@@ -123,13 +123,17 @@ const ElecHalfHourMonthlyAnalysis: React.FC<ElecHalfHourMonthlyAnalysisProps> =
</div> </div>
{!isLoading ? ( {!isLoading ? (
<> <>
{monthDataloads && ( {monthDataloads ? (
<ElecHalfHourChart <ElecHalfHourChart
dataLoad={ dataLoad={
isWeekend ? monthDataloads.weekend : monthDataloads.week isWeekend ? monthDataloads.weekend : monthDataloads.week
} }
isWeekend={isWeekend} isWeekend={isWeekend}
/> />
) : (
<p className={`text-20-bold no_data`}>
{t('analysis.no_data')}
</p>
)} )}
{enedisAnalysisValues && ( {enedisAnalysisValues && (
<div className="min-max"> <div className="min-max">
......
...@@ -48,6 +48,10 @@ ...@@ -48,6 +48,10 @@
.loader-container { .loader-container {
text-align: center; text-align: center;
} }
.no_data {
text-align: center;
color: white;
}
} }
.graph-elec-half-hour { .graph-elec-half-hour {
height: 13rem; 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