Skip to content
Snippets Groups Projects
Commit 47a6d99b authored by Rémi PAPIN's avatar Rémi PAPIN
Browse files

add thunder in card

parent c975abde
No related branches found
No related tags found
1 merge request!234update efficienty modal
...@@ -4,6 +4,7 @@ import StyledEcogestureCard from 'components/CommonKit/Card/StyledEcogestureCard ...@@ -4,6 +4,7 @@ import StyledEcogestureCard from 'components/CommonKit/Card/StyledEcogestureCard
import StyledIcon from 'components/CommonKit/Icon/StyledIcon' import StyledIcon from 'components/CommonKit/Icon/StyledIcon'
import { importIconbyId } from 'utils/utils' import { importIconbyId } from 'utils/utils'
import './ecogestureCard.scss' import './ecogestureCard.scss'
import EfficientyRating from './EfficientyRating'
interface EcogestureCardProps { interface EcogestureCardProps {
ecogesture: Ecogesture ecogesture: Ecogesture
handleClick?: (ecogesture: Ecogesture) => void handleClick?: (ecogesture: Ecogesture) => void
...@@ -49,8 +50,7 @@ const EcogestureCard: React.FC<EcogestureCardProps> = ({ ...@@ -49,8 +50,7 @@ const EcogestureCard: React.FC<EcogestureCardProps> = ({
{ecogesture.shortName} {ecogesture.shortName}
</div> </div>
<div className="ec-content-nwh"> <div className="ec-content-nwh">
<span className="text-16-bold">{ecogesture.nwh}</span> <EfficientyRating result={Math.round(ecogesture.nwh / 2)} />
<span className="text-16-normal"> nWh</span>
</div> </div>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment