|
|
|
@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
|
|
import React from 'react';
|
|
|
|
|
import styles from './LoadingIndicator.css';
|
|
|
|
|
|
|
|
|
|
function LoadingIndicator({ className, size }) {
|
|
|
|
|
function LoadingIndicator({ className, rippleClassName, size }) {
|
|
|
|
|
const sizeInPx = `${size}px`;
|
|
|
|
|
const width = sizeInPx;
|
|
|
|
|
const height = sizeInPx;
|
|
|
|
@ -17,17 +17,17 @@ function LoadingIndicator({ className, size }) {
|
|
|
|
|
style={{ width, height }}
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
className={styles.ripple}
|
|
|
|
|
className={rippleClassName}
|
|
|
|
|
style={{ width, height }}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
className={styles.ripple}
|
|
|
|
|
className={rippleClassName}
|
|
|
|
|
style={{ width, height }}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
className={styles.ripple}
|
|
|
|
|
className={rippleClassName}
|
|
|
|
|
style={{ width, height }}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
@ -37,11 +37,13 @@ function LoadingIndicator({ className, size }) {
|
|
|
|
|
|
|
|
|
|
LoadingIndicator.propTypes = {
|
|
|
|
|
className: PropTypes.string,
|
|
|
|
|
rippleClassName: PropTypes.string,
|
|
|
|
|
size: PropTypes.number
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
LoadingIndicator.defaultProps = {
|
|
|
|
|
className: styles.loading,
|
|
|
|
|
rippleClassName: styles.ripple,
|
|
|
|
|
size: 50
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|