diff --git a/src/pages/PlacesOfWorshipPage.tsx b/src/pages/PlacesOfWorshipPage.tsx index 0284564..dcdc62d 100644 --- a/src/pages/PlacesOfWorshipPage.tsx +++ b/src/pages/PlacesOfWorshipPage.tsx @@ -1,5 +1,6 @@ import { useState } from "react"; import { trpc } from "@/providers/trpc"; +import { LocationPicker } from "@/components/LocationPicker"; import { Card, CardContent } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; @@ -159,6 +160,10 @@ export default function PlacesOfWorshipPage() { const selectedPlaceData = places?.find((p) => p.id === selectedPlace); + const updateFormData = (next: Partial) => { + setFormData((current) => ({ ...current, ...next })); + }; + return (
@@ -203,6 +208,12 @@ export default function PlacesOfWorshipPage() { setFormData({ ...formData, address: e.target.value })} placeholder="Alamat lengkap" className="h-9" />
+
@@ -348,6 +359,12 @@ export default function PlacesOfWorshipPage() { setFormData({ ...formData, address: e.target.value })} className="h-9" />
+
setFormData({ ...formData, latitude: e.target.value })} className="h-9" />
setFormData({ ...formData, longitude: e.target.value })} className="h-9" />