From 6608d0e62fd232cbc19f42f58d1f56cfe2ef6842 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Wed, 17 May 2023 08:54:35 +0700
Subject: feedback UAT

---
 src/core/components/elements/Popup/BottomPopup.jsx | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

(limited to 'src/core/components/elements/Popup/BottomPopup.jsx')

diff --git a/src/core/components/elements/Popup/BottomPopup.jsx b/src/core/components/elements/Popup/BottomPopup.jsx
index 80afa8d9..0f4088d4 100644
--- a/src/core/components/elements/Popup/BottomPopup.jsx
+++ b/src/core/components/elements/Popup/BottomPopup.jsx
@@ -39,9 +39,11 @@ const BottomPopup = ({ children, active = false, title, close, className = '' })
               >
                 <div className='flex justify-between py-4'>
                   <div className='font-semibold text-h-sm'>{title}</div>
-                  <button type='button' onClick={close}>
-                    <XMarkIcon className='w-5 stroke-2' />
-                  </button>
+                  {close && (
+                    <button type='button' onClick={close}>
+                      <XMarkIcon className='w-5 stroke-2' />
+                    </button>
+                  )}
                 </div>
                 {children}
               </motion.div>
@@ -57,9 +59,11 @@ const BottomPopup = ({ children, active = false, title, close, className = '' })
               >
                 <div className='flex justify-between py-4'>
                   <div className='font-semibold text-h-sm'>{title}</div>
-                  <button type='button' onClick={close}>
-                    <XMarkIcon className='w-5 stroke-2' />
-                  </button>
+                  {close && (
+                    <button type='button' onClick={close}>
+                      <XMarkIcon className='w-5 stroke-2' />
+                    </button>
+                  )}
                 </div>
                 {children}
               </motion.div>
-- 
cgit v1.2.3

