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> = ({
<CozyBar />
<Header setHeaderHeight={defineHeaderHeight}>
<DateNavigator />
<FluidButtons activeFluid={fluidType} />
<FluidButtons activeFluid={fluidType} key={lastDataDate} />
</Header>
<Content height={headerHeight}>
{isFluidKonnected ? (
......
......@@ -9,6 +9,26 @@
@media (min-width: $width-tablet) {
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 {
font-weight: bold;
......@@ -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 {
display: flex;
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