dont show closeButton if close proper not set

This commit is contained in:
Abhinav-grd 2021-04-29 14:13:00 +05:30
parent e7b0df8b48
commit 7916f235c6

View file

@ -39,7 +39,10 @@ export default function MessageDialog({
centered
backdrop={attributes.staticBackdrop ? 'static' : 'true'}
>
<Modal.Header style={{ borderBottom: 'none' }} closeButton>
<Modal.Header
style={{ borderBottom: 'none' }}
closeButton={attributes.close != null}
>
{attributes.title && (
<Modal.Title>
<strong>{attributes.title}</strong>