summaryrefslogtreecommitdiff
path: root/src/core/components/elements/Popup/BottomPopup.jsx
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-05-17 08:54:35 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-05-17 08:54:35 +0700
commit6608d0e62fd232cbc19f42f58d1f56cfe2ef6842 (patch)
tree83b706f65cbfb9992fb863518f9c8344bc62f9d9 /src/core/components/elements/Popup/BottomPopup.jsx
parentd725e36151eea62ace5e1136e7963600da0394f0 (diff)
feedback UAT
Diffstat (limited to 'src/core/components/elements/Popup/BottomPopup.jsx')
-rw-r--r--src/core/components/elements/Popup/BottomPopup.jsx16
1 files changed, 10 insertions, 6 deletions
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>