MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / handleSave

Function handleSave

src/components/FieldEditDialog.tsx:41–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }, {} as Record<string, typeof CROP_OPTIONS>);
40
41 const handleSave = () => {
42 const areaAcres = parseFloat(area) || haToAcres(field.area);
43 const areaHa = Math.round((areaAcres / 2.47105) * 10) / 10;
44 onSave({ ...field, name, crop, cropEmoji: "", area: areaHa, location, color, group: group || undefined });
45 };
46
47 return (
48 <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm pb-[env(safe-area-inset-bottom)]">

Callers

nothing calls this directly

Calls 1

haToAcresFunction · 0.90

Tested by

no test coverage detected