mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
formatting plan table and changing condition for solarPv
This commit is contained in:
parent
2225809345
commit
84eecd1b2c
3 changed files with 12 additions and 2 deletions
|
|
@ -6,13 +6,20 @@ import { ColumnDef } from "@tanstack/react-table";
|
|||
|
||||
const formattedQuantity = {
|
||||
m2: "m²",
|
||||
part: " Units",
|
||||
};
|
||||
|
||||
const formattedMeasure = {
|
||||
internal_wall_insulation: "Internal Wall Insulation",
|
||||
external_wall_insulation: "External Wall Insulation",
|
||||
suspended_floor_insulation: "Suspension Floor Insulation",
|
||||
suspended_floor_insulation: "Suspended Floor Insulation",
|
||||
solid_floor_insulation: "Solid Floor Insulation",
|
||||
mechanical_ventilation: "Mechanical Ventilation",
|
||||
loft_insulation: "Loft Insulation",
|
||||
cavity_wall_insulation: "Cavity Wall Insulation",
|
||||
flat_roof_insulation: "Flat Roof Insulation",
|
||||
exposed_floor_insulation: "Exposed Floor Insulation",
|
||||
room_roof_insulation: "Room Roof Insulation",
|
||||
};
|
||||
|
||||
export const portfolioPlanColumns: ColumnDef<PortfolioPlanRecommendation>[] = [
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@ export default async function PortfolioPlan({
|
|||
const portfolioId = params.slug;
|
||||
const portfolioPlan = await getPortfolioPlan(portfolioId);
|
||||
|
||||
console.log("HIHI");
|
||||
console.log(portfolioPlan);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex justify-center mt-8">
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ export function formatRetrofitFeatures(
|
|||
{
|
||||
feature: "Solar Photo Voltaic",
|
||||
description:
|
||||
conditionReportData.solarPv != null
|
||||
conditionReportData.solarPv !== 0 && conditionReportData.solarPv != null
|
||||
? "Present in the property"
|
||||
: "Not present in the property",
|
||||
rating: "N/A",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue