Format the map
This commit is contained in:
parent
4c258018c3
commit
0fde087c3d
3 changed files with 64 additions and 29 deletions
|
|
@ -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>
|
||||
)}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue