From 81f06d02bef8701be568e7418828d925925c5b12 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Fri, 20 Sep 2024 10:58:20 +0700
Subject: <iman> update new register disebled email

---
 src/lib/address/components/EditAddress.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/src/lib/address/components/EditAddress.jsx b/src/lib/address/components/EditAddress.jsx
index 580aaeb8..590a0bc0 100644
--- a/src/lib/address/components/EditAddress.jsx
+++ b/src/lib/address/components/EditAddress.jsx
@@ -29,7 +29,6 @@ const EditAddress = ({ id, defaultValues }) => {
     resolver: yupResolver(validationSchema),
     defaultValues,
   });
-
   const [cities, setCities] = useState([]);
   const [districts, setDistricts] = useState([]);
   const [subDistricts, setSubDistricts] = useState([]);
@@ -195,6 +194,7 @@ const EditAddress = ({ id, defaultValues }) => {
                   placeholder='johndoe@example.com'
                   type='email'
                   className='form-input'
+                  disabled={auth?.partnerId == id && true}
                 />
                 <div className='text-caption-2 text-danger-500 mt-1'>
                   {errors.email?.message}
-- 
cgit v1.2.3

