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();
onCancel();
}}
closable={false}
okText="Submit"
title={`Edit ${testCase?.name}`}
visible={visible}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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