Simplify
This commit is contained in:
parent
6c702c7b6a
commit
549367fcd6
@ -19,13 +19,11 @@ import CircularProgress from 'material-ui/CircularProgress';
|
|||||||
|
|
||||||
import styles from './loading.css';
|
import styles from './loading.css';
|
||||||
|
|
||||||
export function Loading ({ className, size, thickness }) {
|
export default function Loading ({ className, size, thickness }) {
|
||||||
const computedSize = size * 60;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={ [ styles.loading, className ].join(' ') }>
|
<div className={ [ styles.loading, className ].join(' ') }>
|
||||||
<CircularProgress
|
<CircularProgress
|
||||||
size={ computedSize }
|
size={ size * 60 }
|
||||||
thickness={ thickness }
|
thickness={ thickness }
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user