Skip to content

Commit

Permalink
Format progressbar
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Oct 7, 2022
1 parent 7b36280 commit d1fa32a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/lib/progressbar/ProgressBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ export const ProgressBar = React.memo(
return (
<div role="progressbar" id={props.id} ref={elementRef} className={className} style={props.style} aria-valuemin="0" aria-valuenow={props.value} aria-valuemax="100" {...otherProps}>
<div className="p-progressbar-value p-progressbar-value-animate" style={{ width: props.value + '%', display: 'flex', backgroundColor: props.color }}>
{props.value != null && props.value !== 0 && props.showValue && (
<div className={`p-progressbar-label`} >
{label}
</div>
)}
{props.value != null && props.value !== 0 && props.showValue && <div className={`p-progressbar-label`}>{label}</div>}
</div>
</div>
);
Expand Down

0 comments on commit d1fa32a

Please sign in to comment.