removing epc card

This commit is contained in:
Khalim Conn-Kowlessar 2024-09-09 16:47:08 +01:00
parent fd0417f3e3
commit f716703050

View file

@ -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