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
44ff1a0b
Commit
44ff1a0b
authored
Nov 03, 2021
by
Guilhem CARRON
Browse files
fix(conso): Refresh fluidButtons state when konnector update
parent
b375711c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/Home/ConsumptionView.tsx
View file @
44ff1a0b
...
@@ -66,7 +66,7 @@ const ConsumptionView: React.FC<ConsumptionViewProps> = ({
...
@@ -66,7 +66,7 @@ const ConsumptionView: React.FC<ConsumptionViewProps> = ({
<
CozyBar
/>
<
CozyBar
/>
<
Header
setHeaderHeight
=
{
defineHeaderHeight
}
>
<
Header
setHeaderHeight
=
{
defineHeaderHeight
}
>
<
DateNavigator
/>
<
DateNavigator
/>
<
FluidButtons
activeFluid
=
{
fluidType
}
/>
<
FluidButtons
activeFluid
=
{
fluidType
}
key
=
{
lastDataDate
}
/>
</
Header
>
</
Header
>
<
Content
height
=
{
headerHeight
}
>
<
Content
height
=
{
headerHeight
}
>
{
isFluidKonnected
?
(
{
isFluidKonnected
?
(
...
...
src/components/ProfileType/profileTypeForm.scss
View file @
44ff1a0b
...
@@ -9,6 +9,26 @@
...
@@ -9,6 +9,26 @@
@media
(
min-width
:
$width-tablet
)
{
@media
(
min-width
:
$width-tablet
)
{
margin
:
1rem
1rem
0
;
margin
:
1rem
1rem
0
;
}
}
.text
,
.number
{
font-size
:
1
.25rem
;
input
{
margin
:
0
.5rem
;
background
:
$dark-light-2
;
color
:
$white
;
border
:
1px
solid
$gold-shadow
;
max-width
:
5rem
;
height
:
2
.5rem
;
text-align
:
center
;
&
:focus
{
outline
:
$gold-shadow
1px
;
}
&
:disabled
{
-webkit-text-fill-color
:
$white
;
opacity
:
1
;
}
}
}
}
}
.profile-question-label
{
.profile-question-label
{
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -106,27 +126,6 @@
...
@@ -106,27 +126,6 @@
}
}
}
}
}
}
.text
,
.number
{
font-size
:
1
.25rem
;
input
{
margin
:
0
.5rem
;
background
:
$dark-light-2
;
color
:
$white
;
border
:
1px
solid
$gold-shadow
;
max-width
:
5rem
;
height
:
2
.5rem
;
text-align
:
center
;
&
:focus
{
outline
:
$gold-shadow
1px
;
}
&
:disabled
{
-webkit-text-fill-color
:
$white
;
opacity
:
1
;
}
}
}
.number-container
{
.number-container
{
display
:
flex
;
display
:
flex
;
justify-content
:
left
;
justify-content
:
left
;
...
...
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