File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed
src/Shared/Components/CICDHistory Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- import { useEffect , useState } from 'react'
18
17
import { useParams } from 'react-router'
19
18
import { useDownload } from '@Shared/Hooks'
20
19
import {
@@ -133,7 +132,7 @@ const Artifacts = ({
133
132
appReleaseTagNames,
134
133
tagsEditable,
135
134
hideImageTaggingHardDelete,
136
- jobCIClass ,
135
+ rootClassName ,
137
136
renderCIListHeader,
138
137
} : ArtifactType ) => {
139
138
const { isSuperAdmin } = useSuperAdmin ( )
@@ -143,14 +142,6 @@ const Artifacts = ({
143
142
triggerId : string
144
143
buildId : string
145
144
} > ( )
146
- const [ copied , setCopied ] = useState ( false )
147
-
148
- useEffect ( ( ) => {
149
- if ( ! copied ) {
150
- return
151
- }
152
- setTimeout ( ( ) => setCopied ( false ) , 2000 )
153
- } , [ copied ] )
154
145
155
146
async function handleArtifact ( ) {
156
147
await handleDownload ( {
@@ -215,7 +206,7 @@ const Artifacts = ({
215
206
)
216
207
}
217
208
return (
218
- < div className = { `flex left column dc__gap-12 ${ jobCIClass ?? '' } ` } >
209
+ < div className = { `flex left column dc__gap-12 ${ rootClassName ?? '' } ` } >
219
210
{ ! isJobView && type !== HistoryComponentType . CD && (
220
211
< CIListItem
221
212
type = "artifact"
Original file line number Diff line number Diff line change @@ -614,6 +614,7 @@ const HistoryLogs: React.FC<HistoryLogsProps> = ({
614
614
downloadArtifactUrl = { CDBuildReportUrl }
615
615
type = { HistoryComponentType . CD }
616
616
renderCIListHeader = { renderCIListHeader }
617
+ rootClassName = "p-16"
617
618
/>
618
619
) }
619
620
</ Route >
Original file line number Diff line number Diff line change @@ -585,7 +585,7 @@ export interface ArtifactType {
585
585
appReleaseTagNames ?: string [ ]
586
586
tagsEditable ?: boolean
587
587
hideImageTaggingHardDelete ?: boolean
588
- jobCIClass ?: string
588
+ rootClassName ?: string
589
589
renderCIListHeader : ( renderCIListHeaderProps : RenderCIListHeaderProps ) => JSX . Element
590
590
}
591
591
You can’t perform that action at this time.
0 commit comments