- {amount_of_steps.map((st, index) => {
- const active = step === index + 1;
-
- return (
-
setStep(index + 1)}
- className={active ? 'progress-bar-rectangle' : 'progress-bar-circle'}
- />
- );
- })}
-
- );
-};
-
-export default ProgressBarOnboarding;
diff --git a/packages/components/src/components/progress-bar-tracker/index.ts b/packages/components/src/components/progress-bar-tracker/index.ts
new file mode 100644
index 000000000000..5eb7716bff17
--- /dev/null
+++ b/packages/components/src/components/progress-bar-tracker/index.ts
@@ -0,0 +1,4 @@
+import ProgressBarTracker from './progress-bar-tracker';
+import './progress-bar-tracker.scss';
+
+export default ProgressBarTracker;
diff --git a/packages/components/src/components/progress-bar-onboarding/progress-bar-onboarding.scss b/packages/components/src/components/progress-bar-tracker/progress-bar-tracker.scss
similarity index 93%
rename from packages/components/src/components/progress-bar-onboarding/progress-bar-onboarding.scss
rename to packages/components/src/components/progress-bar-tracker/progress-bar-tracker.scss
index 7539d65d66d2..b3c7ce016b50 100644
--- a/packages/components/src/components/progress-bar-onboarding/progress-bar-onboarding.scss
+++ b/packages/components/src/components/progress-bar-tracker/progress-bar-tracker.scss
@@ -1,4 +1,4 @@
-.progress-bar {
+.dc-progress-bar-tracker {
display: flex;
justify-content: center;
cursor: pointer;
diff --git a/packages/components/src/components/progress-bar-tracker/progress-bar-tracker.tsx b/packages/components/src/components/progress-bar-tracker/progress-bar-tracker.tsx
new file mode 100644
index 000000000000..d53ef8751683
--- /dev/null
+++ b/packages/components/src/components/progress-bar-tracker/progress-bar-tracker.tsx
@@ -0,0 +1,25 @@
+import React from 'react';
+
+type TProgressBarTracker = {
+ step: number;
+ steps_list: Array
;
+ setStep: React.Dispatch>;
+};
+
+const ProgressBarTracker = ({ step, steps_list, setStep }: TProgressBarTracker) => (
+
+ {steps_list.map((step_item, index) => {
+ const active = step === index + 1;
+
+ return (
+
setStep(index + 1)}
+ className={active ? 'dc-progress-bar-tracker-rectangle' : 'dc-progress-bar-tracker-circle'}
+ />
+ );
+ })}
+
+);
+
+export default ProgressBarTracker;
diff --git a/packages/components/src/index.js b/packages/components/src/index.ts
similarity index 98%
rename from packages/components/src/index.js
rename to packages/components/src/index.ts
index 639324205a3c..c2e7729236ed 100644
--- a/packages/components/src/index.js
+++ b/packages/components/src/index.ts
@@ -83,7 +83,7 @@ export { default as Popover } from './components/popover';
export { default as Popup } from './components/popup';
export { default as PopoverMessageCheckbox } from './components/popover-message-checkbox';
export { default as ProgressBar } from './components/progress-bar';
-export { default as ProgressBarOnboarding } from './components/progress-bar-onboarding';
+export { default as ProgressBarTracker } from './components/progress-bar-tracker';
export { default as ProgressIndicator } from './components/progress-indicator';
export { default as ProgressSlider } from './components/progress-slider';
export { default as ProgressSliderMobile } from './components/progress-slider-mobile';