Commit 44ff1a0b authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

fix(conso): Refresh fluidButtons state when konnector update

parent b375711c
...@@ -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 ? (
......
...@@ -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;
......
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