diff options
Diffstat (limited to 'src/core')
| -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> |
