11/*!
2- * Copyright 2022 - Swiss Data Science Center (SDSC)
2+ * Copyright 2026 - Swiss Data Science Center (SDSC)
33 * A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
44 * Eidgenössische Technische Hochschule Zürich (ETHZ).
55 *
1616 * limitations under the License.
1717 */
1818
19+ import cx from "classnames" ;
1920import {
2021 CheckCircleFill ,
2122 SlashCircle ,
@@ -24,7 +25,7 @@ import {
2425
2526import { Loader } from "../Loader" ;
2627
27- import "./Progress.css " ;
28+ import styles from "./ProgressBox.module.scss " ;
2829
2930/**
3031 * renku-ui
@@ -74,31 +75,27 @@ interface ProgressStepsIndicatorProps {
7475 moreOptions ?: React . ReactNode ;
7576}
7677
77- /**
78- * Project Visibility functional component
79- * @param {ProgressIndicatorProps } props - progress indicator options
80- */
81- const ProgressStepsIndicator = ( {
78+ export default function ProgressStepsIndicator ( {
8279 style = ProgressStyle . Dark ,
8380 title,
8481 description,
8582 status,
8683 moreOptions,
87- } : ProgressStepsIndicatorProps ) => {
84+ } : ProgressStepsIndicatorProps ) {
8885 const content = status . map ( ( s ) => (
8986 < ProgressStep key = { `step-${ s . id } ` } step = { s } />
9087 ) ) ;
9188 return (
92- < div className = { `progress-box progress-box-- ${ style } `} >
93- < h2 className = "progress-title" > { title } </ h2 >
89+ < div className = { cx ( styles . progressBox , styles [ `progressBox_ ${ style } `] ) } >
90+ < h2 > { title } </ h2 >
9491 < p className = "pb-2" > { description } </ p >
95- < div className = "mt-3 details-progress-box " >
92+ < div className = "mt-3" >
9693 { content }
9794 { moreOptions }
9895 </ div >
9996 </ div >
10097 ) ;
101- } ;
98+ }
10299
103100interface progressStepProps {
104101 step : StepsProgressBar ;
@@ -148,7 +145,9 @@ function ProgressStep({ step }: progressStepProps) {
148145 break ;
149146 }
150147
151- return < div className = "d-flex gap-2 mt-2 align-items-center" > { content } </ div > ;
148+ return (
149+ < div className = { cx ( "d-flex" , "gap-2" , "mt-2" , "align-items-center" ) } >
150+ { content }
151+ </ div >
152+ ) ;
152153}
153-
154- export default ProgressStepsIndicator ;
0 commit comments