mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-20 21:55:03 -04:00
d99a7e9b8a
(cherry picked from commit e1cbc4a78249881de96160739a50c0a399ea4313) Closes #10378 Fixed: Links tooltip closing too quickly (cherry picked from commit 0b9a212f33381d07ff67e2453753aaab64cc8041) Closes #10400 Fixed: Movie links not opening on iOS (cherry picked from commit f20ac9dc348e1f5ded635f12ab925d982b1b8957) Closes #10425
37 lines
899 B
TypeScript
37 lines
899 B
TypeScript
import classNames from 'classnames';
|
|
import React from 'react';
|
|
import styles from './LoadingIndicator.css';
|
|
|
|
interface LoadingIndicatorProps {
|
|
className?: string;
|
|
rippleClassName?: string;
|
|
size?: number;
|
|
}
|
|
|
|
function LoadingIndicator({
|
|
className = styles.loading,
|
|
rippleClassName = styles.ripple,
|
|
size = 50,
|
|
}: LoadingIndicatorProps) {
|
|
const sizeInPx = `${size}px`;
|
|
const width = sizeInPx;
|
|
const height = sizeInPx;
|
|
|
|
return (
|
|
<div className={className} style={{ height }}>
|
|
<div
|
|
className={classNames(styles.rippleContainer, 'followingBalls')}
|
|
style={{ width, height }}
|
|
>
|
|
<div className={rippleClassName} style={{ width, height }} />
|
|
|
|
<div className={rippleClassName} style={{ width, height }} />
|
|
|
|
<div className={rippleClassName} style={{ width, height }} />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default LoadingIndicator;
|