File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import {
26
26
diffStateTextMap ,
27
27
} from '@Shared/Components/DeploymentConfigDiff'
28
28
29
- import { DeploymentStatus } from '@Shared/Components/StatusComponent'
30
29
import { History } from '../types'
31
30
import { DeploymentHistoryConfigDiffProps } from './types'
32
31
@@ -77,8 +76,6 @@ export const renderDeploymentHistoryConfig = (
77
76
</ div >
78
77
)
79
78
80
- export const renderPipelineDeploymentStatusIcon = ( status : string ) => < DeploymentStatus status = { status } />
81
-
82
79
export const renderPipelineDeploymentOptionDescription = ( {
83
80
stage,
84
81
triggeredBy,
Original file line number Diff line number Diff line change @@ -19,9 +19,10 @@ import moment from 'moment'
19
19
import { DATE_TIME_FORMATS , ERROR_STATUS_CODE } from '@Common/Constants'
20
20
import { DeploymentStageType } from '@Shared/constants'
21
21
import { SelectPickerOptionType } from '@Shared/Components/SelectPicker'
22
+ import { DeploymentStatus } from '@Shared/Components/StatusComponent'
22
23
23
24
import { History } from '../types'
24
- import { renderPipelineDeploymentOptionDescription , renderPipelineDeploymentStatusIcon } from './helpers'
25
+ import { renderPipelineDeploymentOptionDescription } from './helpers'
25
26
import { DeploymentHistoryConfigDiffProps } from './types'
26
27
27
28
export const getPipelineDeployments = ( triggerHistory : DeploymentHistoryConfigDiffProps [ 'triggerHistory' ] ) =>
@@ -68,7 +69,7 @@ export const getPipelineDeploymentsOptions = ({
68
69
resourceId,
69
70
runSource : triggerHistory . get ( id ) . runSource ,
70
71
} ) ,
71
- startIcon : renderPipelineDeploymentStatusIcon ( status ) ,
72
+ startIcon : < DeploymentStatus status = { status } /> ,
72
73
} ) ,
73
74
)
74
75
const currentDeployment = moment ( pipelineDeployments [ currentDeploymentIndex ] . startedOn ) . format (
You can’t perform that action at this time.
0 commit comments