Format the map

This commit is contained in:
Andras Schmelczer 2026-01-31 13:07:18 +00:00
parent 4c258018c3
commit 0fde087c3d
3 changed files with 64 additions and 29 deletions

View file

@ -31,9 +31,7 @@ export function PropertiesPane({
case 'size':
return ((b.total_floor_area as number) || 0) - ((a.total_floor_area as number) || 0);
case 'energy':
return (a.current_energy_rating || 'Z').localeCompare(
b.current_energy_rating || 'Z'
);
return (a.current_energy_rating || 'Z').localeCompare(b.current_energy_rating || 'Z');
}
});
}, [properties, sortBy]);
@ -142,7 +140,8 @@ function PropertyCard({ property }: { property: Property }) {
)}
{property.total_floor_area && (
<div>
<span className="text-gray-600">Area:</span> {formatNumber(property.total_floor_area as number)}m²
<span className="text-gray-600">Area:</span>{' '}
{formatNumber(property.total_floor_area as number)}m²
</div>
)}
{property.number_habitable_rooms && (
@ -163,7 +162,8 @@ function PropertyCard({ property }: { property: Property }) {
)}
{property.construction_age_band !== undefined && (
<div>
<span className="text-gray-600">Built (age):</span> {formatNumber(property.construction_age_band as number)}
<span className="text-gray-600">Built (age):</span>{' '}
{formatNumber(property.construction_age_band as number)}
</div>
)}