mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
apply suggestion
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
4562f34995
commit
3adf4e8651
1 changed files with 4 additions and 8 deletions
|
@ -88,15 +88,11 @@ const RefreshIndicator: FC<RefreshIndicatorProps> = ({ item, className }) => {
|
||||||
|
|
||||||
const progressringClass = classNames('progressring', className);
|
const progressringClass = classNames('progressring', className);
|
||||||
|
|
||||||
return (
|
return showProgressBar ? (
|
||||||
<div>
|
<div className={progressringClass}>
|
||||||
{showProgressBar && (
|
<CircularProgressWithLabel value={Math.floor(progress)} />
|
||||||
<div className={progressringClass}>
|
|
||||||
<CircularProgressWithLabel value={Math.floor(progress)} />
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
) : null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default RefreshIndicator;
|
export default RefreshIndicator;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue