Skip to content
Snippets Groups Projects
Commit 779cf293 authored by HAUTBOIS Aurelie's avatar HAUTBOIS Aurelie
Browse files

feat: replace nwh by efficiency

parent 32f0b7ae
Branches
Tags
1 merge request!254Features/US367-update-model-ecogeste
...@@ -49,8 +49,8 @@ const EcogestureCard: React.FC<EcogestureCardProps> = ({ ...@@ -49,8 +49,8 @@ const EcogestureCard: React.FC<EcogestureCardProps> = ({
<div className="ec-content-short-name text-16-bold"> <div className="ec-content-short-name text-16-bold">
{ecogesture.shortName} {ecogesture.shortName}
</div> </div>
<div className="ec-content-nwh"> <div className="ec-content-efficiency">
<EfficientyRating result={Math.round(ecogesture.nwh / 2)} /> <EfficientyRating result={Math.round(ecogesture.efficiency)} />
</div> </div>
</div> </div>
</div> </div>
......
...@@ -68,11 +68,11 @@ const EcogestureModal: React.FC<EcogestureModalProps> = ({ ...@@ -68,11 +68,11 @@ const EcogestureModal: React.FC<EcogestureModalProps> = ({
</div> </div>
<div className="em-title text-24-bold ">{ecogesture.shortName}</div> <div className="em-title text-24-bold ">{ecogesture.shortName}</div>
<div className="em-detail"> <div className="em-detail">
<div className="em-detail-nwh"> <div className="em-detail-efficiency">
<span className="em-efficiency"> <span className="em-efficiency">
{t('ECOGESTURE.EFFICIENCY')} {t('ECOGESTURE.EFFICIENCY')}
</span> </span>
<EfficientyRating result={Math.round(ecogesture.nwh / 2)} /> <EfficientyRating result={Math.round(ecogesture.efficiency)} />
</div> </div>
<div className="em-picto-flow"> <div className="em-picto-flow">
{ecogesture.fluidTypes.map((fluid, index) => ( {ecogesture.fluidTypes.map((fluid, index) => (
......
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
align-items: center; align-items: center;
text-align: center; text-align: center;
} }
.ec-content-nwh { .ec-content-efficiency {
margin-top: 0.25rem; margin-top: 0.5rem;
color: $soft-grey; color: $soft-grey;
} }
} }
......
...@@ -48,15 +48,12 @@ ...@@ -48,15 +48,12 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
margin: 0.5em 0; margin: 0.5em 0;
.em-detail-nwh { .em-detail-efficiency {
display: flex; display: flex;
flex: 1; flex: 1;
align-self: flex-start; align-self: flex-start;
margin-top: 0.65rem; margin-top: 0.65rem;
color: $soft-grey; color: $soft-grey;
.em-detail-nwh-unit {
margin-left: 0.2rem;
}
} }
.em-picto-flow { .em-picto-flow {
display: flex; display: flex;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment