diff --git a/src/app/api/property-meta/[propertyId]/route.ts b/src/app/api/property-meta/[propertyId]/route.ts index 11f001b..6996cff 100644 --- a/src/app/api/property-meta/[propertyId]/route.ts +++ b/src/app/api/property-meta/[propertyId]/route.ts @@ -29,6 +29,7 @@ export async function GET( currentEpcRating: true, currentSapPoints: true, updatedAt: true, + currentValuation: true, }, where: eq(property.id, BigInt(propertyId)), with: { diff --git a/src/app/components/Buttons.tsx b/src/app/components/Buttons.tsx index 9d2d87d..962e9cf 100644 --- a/src/app/components/Buttons.tsx +++ b/src/app/components/Buttons.tsx @@ -26,19 +26,25 @@ export function BrandButton({ }: { label: string; onClick: Dispatch>; - backgroundColor: "brandblue" | "brandgold"; // Restrict backgroundColor to these two options + backgroundColor: + | "brandblue" + | "brandgold" + | "brandmidblue" + | "brandlightblue"; // Restrict backgroundColor to these two options }) { // Dictionary to map background colors to hover colors const hoverColors = { brandblue: "hover:bg-hoverblue", brandgold: "hover:bg-hovergold", + brandmidblue: "hover:bg-hoverblue", + brandlightblue: "hover:bg-brandmidblue", }; return (