From d1592286eef165533c21d52aec70dbb703cdcfd3 Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Wed, 18 Dec 2024 15:03:52 +0700
Subject: feedback uat

---
 src/lib/address/components/CreateAddress.jsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/lib/address/components/CreateAddress.jsx')

diff --git a/src/lib/address/components/CreateAddress.jsx b/src/lib/address/components/CreateAddress.jsx
index 404143f9..5f041eb2 100644
--- a/src/lib/address/components/CreateAddress.jsx
+++ b/src/lib/address/components/CreateAddress.jsx
@@ -45,6 +45,7 @@ const CreateAddress = () => {
     addressMaps,
     selectedPosition,
     detailAddress,
+    setAddressMaps,
   } = useMaps();
 
   useEffect(() => {
@@ -56,6 +57,7 @@ const CreateAddress = () => {
           state.label.includes(detailAddress?.province)
       );
       setValue('state', selectedState?.value);
+      setValue('street', detailAddress?.street);
     
     }
   }, [detailAddress, setValue]);
@@ -70,10 +72,10 @@ const CreateAddress = () => {
       setState(dataState);
     };
     loadState();
+    setAddressMaps('');
   }, []);
 
   const watchState = watch('state');
-  console.log(watchState);
   useEffect(() => {
     setValue('city', '');
     if (watchState) {
@@ -228,7 +230,7 @@ const CreateAddress = () => {
               <label className='form-label mb-2'>PinPoint</label>
               {addressMaps ? (
                 <div className='flex gap-x-2 items-center'>
-                  <MapPinIcon class='h-6 w-6 text-gray-500 mr-3' />{' '}
+                  <MapPinIcon class='h-6 w-6 text-gray-500 mr-3 cursor-pointer' onClick={() => setPinedMaps(true)} />{' '}
                   <span> {addressMaps} </span>
                 </div>
               ) : (
-- 
cgit v1.2.3

