From ed90f614e35d04c52b47737080291fbd7e5b9dbe Mon Sep 17 00:00:00 2001 From: Jake Kasper Date: Thu, 21 Aug 2025 14:11:28 -0500 Subject: [PATCH] properties --- .../src/components/Properties/PropertyForm.js | 47 +++++++------------ 1 file changed, 16 insertions(+), 31 deletions(-) diff --git a/frontend/src/components/Properties/PropertyForm.js b/frontend/src/components/Properties/PropertyForm.js index 55fe4bf..178901f 100644 --- a/frontend/src/components/Properties/PropertyForm.js +++ b/frontend/src/components/Properties/PropertyForm.js @@ -38,8 +38,7 @@ const PropertyForm = ({ onSubmit, onCancel, initialData = null }) => { name: initialData?.name || '', address: initialData?.address || '', latitude: initialData?.latitude || '', - longitude: initialData?.longitude || '', - totalArea: initialData?.totalArea || '' + longitude: initialData?.longitude || '' }); const [mapPosition, setMapPosition] = useState( @@ -136,8 +135,7 @@ const PropertyForm = ({ onSubmit, onCancel, initialData = null }) => { const propertyData = { ...formData, latitude: markerPosition ? markerPosition[0] : (formData.latitude ? parseFloat(formData.latitude) : null), - longitude: markerPosition ? markerPosition[1] : (formData.longitude ? parseFloat(formData.longitude) : null), - totalArea: formData.totalArea ? parseFloat(formData.totalArea) : null + longitude: markerPosition ? markerPosition[1] : (formData.longitude ? parseFloat(formData.longitude) : null) }; try { @@ -154,30 +152,16 @@ const PropertyForm = ({ onSubmit, onCancel, initialData = null }) => {
-
-
- - setFormData({ ...formData, name: e.target.value })} - placeholder="e.g., Main Lawn, Front Yard" - /> -
- -
- - setFormData({ ...formData, totalArea: e.target.value })} - placeholder="5000" - /> -
+
+ + setFormData({ ...formData, name: e.target.value })} + placeholder="e.g., Main Lawn, Front Yard" + />
{/* Address Autocomplete */} @@ -258,12 +242,13 @@ const PropertyForm = ({ onSubmit, onCancel, initialData = null }) => {
+ {/* Esri Satellite Imagery */}