From f71670305002ef1ce72d9b4d7ddaf0e11f521568 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 9 Sep 2024 16:47:08 +0100 Subject: [PATCH] removing epc card --- .../building-passport/[propertyId]/energy-assessment/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/portfolio/[slug]/building-passport/[propertyId]/energy-assessment/page.tsx b/src/app/portfolio/[slug]/building-passport/[propertyId]/energy-assessment/page.tsx index 092d0e4..871f9b0 100644 --- a/src/app/portfolio/[slug]/building-passport/[propertyId]/energy-assessment/page.tsx +++ b/src/app/portfolio/[slug]/building-passport/[propertyId]/energy-assessment/page.tsx @@ -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 = ({ title, value, unit }) => { +const InfoCard: React.FC = ({ title, value, unit }) => { const isEnergyRating = title === "Energy Rating"; const bgColorClass = isEnergyRating ? getEpcColorClass(value.toString()) : ""; // Get the EPC color if it's Energy Rating