fix the missing close icon from modal (#8112)

This commit is contained in:
Ashish Gupta 2022-10-18 18:03:07 +05:30 committed by GitHub
parent c7f1c56c94
commit ced5909bc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 14 additions and 4 deletions

View File

@ -203,6 +203,7 @@ const EditTestCaseModal: React.FC<EditTestCaseModalProps> = ({
form.resetFields(); form.resetFields();
onCancel(); onCancel();
}} }}
closable={false}
okText="Submit" okText="Submit"
title={`Edit ${testCase?.name}`} title={`Edit ${testCase?.name}`}
visible={visible} visible={visible}

View File

@ -639,6 +639,7 @@ const AuthMechanismForm: FC<Props> = ({
<Modal <Modal
centered centered
destroyOnClose destroyOnClose
closable={false}
okText="Confirm" okText="Confirm"
title="Are you sure?" title="Are you sure?"
visible={isConfirmationModalOpen} visible={isConfirmationModalOpen}

View File

@ -93,6 +93,7 @@ const AddAnnouncementModal: FC<Props> = ({
<Modal <Modal
centered centered
className="announcement-modal" className="announcement-modal"
closable={false}
confirmLoading={isLoading} confirmLoading={isLoading}
data-testid="add-announcement" data-testid="add-announcement"
okButtonProps={{ okButtonProps={{

View File

@ -75,6 +75,7 @@ const EditAnnouncementModal: FC<Props> = ({
<Modal <Modal
centered centered
className="announcement-modal" className="announcement-modal"
closable={false}
data-testid="edit-announcement" data-testid="edit-announcement"
okButtonProps={{ okButtonProps={{
form: 'announcement-form', form: 'announcement-form',

View File

@ -183,6 +183,7 @@ const ProfilerSettingsModal: React.FC<ProfilerSettingsModalProps> = ({
cancelButtonProps={{ cancelButtonProps={{
type: 'link', type: 'link',
}} }}
closable={false}
data-testid="profiler-settings-modal" data-testid="profiler-settings-modal"
maskClosable={false} maskClosable={false}
okText="Save" okText="Save"

View File

@ -1167,6 +1167,7 @@ const TeamDetailsV1 = ({
{selectedEntity && ( {selectedEntity && (
<Modal <Modal
centered centered
closable={false}
okText="Confirm" okText="Confirm"
title={`Remove ${getEntityName( title={`Remove ${getEntityName(
selectedEntity.record selectedEntity.record

View File

@ -289,6 +289,7 @@ const UserListV1: FC<UserListV1Props> = ({
type: 'link', type: 'link',
}} }}
className="reactive-modal" className="reactive-modal"
closable={false}
okText="Restore" okText="Restore"
title="restore User" title="restore User"
visible={showReactiveModal} visible={showReactiveModal}

View File

@ -23,6 +23,7 @@ const ChangePasswordForm: React.FC<ChangePasswordForm> = ({
return ( return (
<Modal <Modal
centered centered
closable={false}
okButtonProps={{ okButtonProps={{
form: 'change-password-form', form: 'change-password-form',
type: 'primary', type: 'primary',

View File

@ -218,6 +218,7 @@ const DeleteWidgetModal = ({
return ( return (
<Modal <Modal
closable={false}
data-testid="delete-modal" data-testid="delete-modal"
footer={Footer()} footer={Footer()}
okText="Delete" okText="Delete"

View File

@ -40,6 +40,7 @@ const ReIndexAllModal = ({
return ( return (
<Modal <Modal
centered centered
closable={false}
confirmLoading={confirmLoading} confirmLoading={confirmLoading}
okButtonProps={{ okButtonProps={{
form: 're-index-form', form: 're-index-form',

View File

@ -616,6 +616,7 @@ const PoliciesDetailPage = () => {
{selectedEntity && ( {selectedEntity && (
<Modal <Modal
centered centered
closable={false}
okText="Confirm" okText="Confirm"
title={`Remove ${getEntityName( title={`Remove ${getEntityName(
selectedEntity.record selectedEntity.record

View File

@ -440,6 +440,7 @@ const RolesDetailPage = () => {
{selectedEntity && ( {selectedEntity && (
<Modal <Modal
centered centered
closable={false}
okText="Confirm" okText="Confirm"
title={`Remove ${getEntityName( title={`Remove ${getEntityName(
selectedEntity.record selectedEntity.record

View File

@ -41,6 +41,7 @@ const CommentModal: FC<CommentModalProps> = ({
type: 'link', type: 'link',
className: 'ant-btn-link-custom', className: 'ant-btn-link-custom',
}} }}
closable={false}
data-testid="comment-modal" data-testid="comment-modal"
okButtonProps={{ okButtonProps={{
disabled: !comment, disabled: !comment,

View File

@ -76,6 +76,7 @@ const AddTeamForm: React.FC<AddTeamFormType> = ({
return ( return (
<Modal <Modal
centered centered
closable={false}
okButtonProps={{ okButtonProps={{
form: 'add-team-form', form: 'add-team-form',
type: 'primary', type: 'primary',

View File

@ -14,10 +14,6 @@
border-top: 1px solid #dde3ea; border-top: 1px solid #dde3ea;
} }
.ant-modal-close {
display: none;
}
.ant-modal-footer .ant-btn-default { .ant-modal-footer .ant-btn-default {
border: none; border: none;
color: #7147e8; color: #7147e8;