Web: Shared: className prop was added to progress bar component

This commit is contained in:
Vladimir Khvan 2024-06-04 14:49:56 +05:00
parent 69b579521f
commit ede3b2be5c
2 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,7 @@ const ProgressBar = ({
percent, percent,
label, label,
isInfiniteProgress, isInfiniteProgress,
className,
...rest ...rest
}: ProgressBarProps) => { }: ProgressBarProps) => {
const progressPercent = percent > 100 ? 100 : percent; const progressPercent = percent > 100 ? 100 : percent;
@ -53,6 +54,7 @@ const ProgressBar = ({
</Text> </Text>
<StyledProgressBar <StyledProgressBar
{...rest} {...rest}
className={className}
percent={progressPercent} percent={progressPercent}
data-testid="progress-bar" data-testid="progress-bar"
> >

View File

@ -31,4 +31,5 @@ export interface ProgressBarProps {
label?: string; label?: string;
/** Show infinite progress */ /** Show infinite progress */
isInfiniteProgress?: boolean; isInfiniteProgress?: boolean;
className?: string;
} }