Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
LLLE_Project
Ecolyo
Commits
24675834
Commit
24675834
authored
Dec 02, 2021
by
Guilhem CARRON
Browse files
fix(analysis): Show no data if no enedis analysis
parent
c1412a3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/Analysis/ElecHalfHourMonthlyAnalysis.tsx
View file @
24675834
...
...
@@ -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"
>
...
...
src/components/Analysis/elecHalfHourMonthlyAnalysis.scss
View file @
24675834
...
...
@@ -48,6 +48,10 @@
.loader-container
{
text-align
:
center
;
}
.no_data
{
text-align
:
center
;
color
:
white
;
}
}
.graph-elec-half-hour
{
height
:
13rem
;
...
...
build-token
@project_409_bot
mentioned in commit
13c86180
·
Dec 02, 2021
mentioned in commit
13c86180
mentioned in commit 13c86180f5e044fe4cb2827b667a868d149b188a
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment