diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-05-17 08:54:35 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-05-17 08:54:35 +0700 |
| commit | 6608d0e62fd232cbc19f42f58d1f56cfe2ef6842 (patch) | |
| tree | 83b706f65cbfb9992fb863518f9c8344bc62f9d9 /src/core/components/elements/Popup/BottomPopup.jsx | |
| parent | d725e36151eea62ace5e1136e7963600da0394f0 (diff) | |
feedback UAT
Diffstat (limited to 'src/core/components/elements/Popup/BottomPopup.jsx')
| -rw-r--r-- | src/core/components/elements/Popup/BottomPopup.jsx | 16 |
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> |
