@@ -18,7 +18,6 @@ import { Component, createContext } from 'react'
18
18
import { Route , Switch , withRouter , generatePath } from 'react-router-dom'
19
19
import {
20
20
showError ,
21
- DOCUMENTATION ,
22
21
Progressing ,
23
22
ErrorScreenManager ,
24
23
ConditionalWrap ,
@@ -39,6 +38,11 @@ import {
39
38
deleteWorkflow ,
40
39
InfoBlock ,
41
40
DocLink ,
41
+ Button ,
42
+ Icon ,
43
+ ComponentSizeType ,
44
+ ButtonVariantType ,
45
+ ButtonStyleType ,
42
46
} from '@devtron-labs/devtron-fe-common-lib'
43
47
import Tippy from '@tippyjs/react'
44
48
import { PipelineContext , WorkflowEditProps , WorkflowEditState } from './types'
@@ -908,11 +912,17 @@ class WorkflowEdit extends Component<WorkflowEditProps, WorkflowEditState> {
908
912
< InfoBlock
909
913
variant = "help"
910
914
description = {
911
- < div className = "flex fs-13 fw-4 lh-20 cn-0 " >
915
+ < div className = "flex dc__gap-8 fs-13 fw-4 lh-20 cn-9 " >
912
916
Open a build pipeline to override
913
- < CloseIcon
914
- className = "icon-dim-12 fcn-0 ml-8 cursor"
917
+ < Button
918
+ dataTestId = "close-info-block"
919
+ icon = { < Icon name = "ic-close-small" color = { null } /> }
920
+ ariaLabel = "close-info-button"
921
+ showAriaLabelInTippy = { false }
915
922
onClick = { this . removeTakeMeThereClickedItem }
923
+ size = { ComponentSizeType . xxs }
924
+ variant = { ButtonVariantType . borderLess }
925
+ style = { ButtonStyleType . negativeGrey }
916
926
/>
917
927
</ div >
918
928
}
@@ -953,11 +963,7 @@ class WorkflowEdit extends Component<WorkflowEditProps, WorkflowEditState> {
953
963
? WORKFLOW_EDITOR_HEADER_TIPPY . INFO_TEXT . JOB_VIEW
954
964
: WORKFLOW_EDITOR_HEADER_TIPPY . INFO_TEXT . DEFAULT
955
965
}
956
- documentationLink = {
957
- this . props . isJobView
958
- ? "JOB_WORKFLOW_EDITOR"
959
- : "APP_CREATE_WORKFLOW"
960
- }
966
+ documentationLink = { this . props . isJobView ? 'JOB_WORKFLOW_EDITOR' : 'APP_CREATE_WORKFLOW' }
961
967
documentationLinkText = { WORKFLOW_EDITOR_HEADER_TIPPY . DOCUMENTATION_LINK_TEXT }
962
968
placement = "right"
963
969
/>
0 commit comments