How to hide the X button present at the top from the ant d modal, also how can I disable the behavior of closing the modal using ESC key
return (
<Modal
title={modalHeader}
okText="EXIT"
cancelText="CONTINUE"
visible={visible}
onCancel={onCancelHandler}
onOk={exitUser}
width={600}
cancelButtonProps={{hidden:isExFlag}}
>
<DescriptionParagraph>
{modalBodyText}
</DescriptionParagraph>
</Modal>
);
Based on the documentation version
4.6.6
to hide the X button present at the top from the ant d modal, use the prop
closable
to disable the behavior of closing the modal using esc key, use the prop
keyboard