| SAP Points: |
-
+ |
{cardComponent.sapPoints < 0.1 &&
cardComponent.type !== "mechanical_ventilation"
? "Negligible"
diff --git a/src/app/components/building-passport/RecommendationContainer.tsx b/src/app/components/building-passport/RecommendationContainer.tsx
index 6c3211b0..af9dc110 100644
--- a/src/app/components/building-passport/RecommendationContainer.tsx
+++ b/src/app/components/building-passport/RecommendationContainer.tsx
@@ -332,7 +332,7 @@ export default function RecommendationContainer({
return (
<>
-
+
-
+
{Object.entries(categorizedRecommendations).map(
diff --git a/src/app/components/building-passport/ValuationImpactComponent.tsx b/src/app/components/building-passport/ValuationImpactComponent.tsx
index f5f797cf..f1856a0f 100644
--- a/src/app/components/building-passport/ValuationImpactComponent.tsx
+++ b/src/app/components/building-passport/ValuationImpactComponent.tsx
@@ -7,6 +7,10 @@ import { formatNumber } from "@/app/utils";
import {Card, CardContent} from "@/app/shadcn_components/ui/card";
import { Button } from "@/app/shadcn_components/ui/button";
import { PiggyBank } from 'lucide-react'
+import { Dialog, Transition } from '@headlessui/react'
+import { Fragment } from 'react'
+import { FundingPackageMeasure } from "@/app/db/schema/funding";
+import { set } from "cypress/types/lodash";
type FundingSummaryProps = {
@@ -27,7 +31,7 @@ export const FundingSummary: React.FC = ({ scheme, onSeeMor
{message ? (
- {message}
+ {message}
) : (
<>
@@ -37,14 +41,16 @@ export const FundingSummary: React.FC = ({ scheme, onSeeMor
Click below to learn more about available funding options.
-
+ {!message && (
+
+ )}
>
)}
@@ -102,6 +108,91 @@ export default function ValuationImpactComponent({
scheme={funding.scheme}
onSeeMore={openFundingModal}
/>
+ setFundingModalIsOpen(false)}
+ scheme={funding.scheme}
+ fundingPackageMeasures={funding.fundingPackageMeasures}
+ />
);
}
+
+
+type FundingSummaryModalProps = {
+ isOpen: boolean
+ closeModal: () => void
+ scheme?: string | null;
+ fundingPackageMeasures: FundingPackageMeasure[]
+}
+
+export function FundingSummaryModal({
+ isOpen,
+ closeModal,
+ scheme,
+ fundingPackageMeasures,
+}: FundingSummaryModalProps) {
+ return (
+
+
+
+ )
+}
diff --git a/src/app/portfolio/[slug]/building-passport/[propertyId]/plans/[planId]/page.tsx b/src/app/portfolio/[slug]/building-passport/[propertyId]/plans/[planId]/page.tsx
index a51eee2d..3c270be5 100644
--- a/src/app/portfolio/[slug]/building-passport/[propertyId]/plans/[planId]/page.tsx
+++ b/src/app/portfolio/[slug]/building-passport/[propertyId]/plans/[planId]/page.tsx
@@ -12,11 +12,10 @@ export default async function Recommendations(
const planMeta = await getPlanMeta(params.planId);
const funding = await getPlanFunding(params.planId);
- console.log("Funding Data:", funding);
+ console.log(funding)
return (
|