We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0def59e + 56dca50 commit f9b872dCopy full SHA for f9b872d
lib/src/progress-bar/ProgressBar.tsx
@@ -47,18 +47,10 @@ const DxcProgressBar = ({
47
>
48
<LinearProgressBar
49
backgroundType={backgroundType}
50
- variant={showValue ? "determinate" : "indeterminate"}
+ variant={value === null || value === undefined ? "indeterminate" : "determinate"}
51
container="first"
52
value={valueProgressBar}
53
></LinearProgressBar>
54
- {!showValue && (
55
- <LinearProgressBar
56
- backgroundType={backgroundType}
57
- variant="indeterminate"
58
- container="second"
59
- value={valueProgressBar}
60
- ></LinearProgressBar>
61
- )}
62
</LinearProgress>
63
{helperText && (
64
<HelperText overlay={overlay} backgroundType={backgroundType}>
0 commit comments