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 */}