mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
removing epc card
This commit is contained in:
parent
fd0417f3e3
commit
f716703050
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import {
|
|||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/app/shadcn_components/ui/card";
|
||||
import EpcCard from "@/app/components/building-passport/EpcCard";
|
||||
|
||||
import {
|
||||
getEnergyAssessment,
|
||||
getEnergyAssessmentDocuments,
|
||||
|
|
@ -30,7 +30,7 @@ type InfoCardProps = {
|
|||
unit: string;
|
||||
};
|
||||
|
||||
export const InfoCard: React.FC<InfoCardProps> = ({ title, value, unit }) => {
|
||||
const InfoCard: React.FC<InfoCardProps> = ({ title, value, unit }) => {
|
||||
const isEnergyRating = title === "Energy Rating";
|
||||
const bgColorClass = isEnergyRating ? getEpcColorClass(value.toString()) : ""; // Get the EPC color if it's Energy Rating
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue