All files / web/modules/components Spin.tsx

71.43% Statements 5/7
100% Branches 0/0
0% Functions 0/1
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 152x 2x 2x           2x         2x  
import Icon from 'antd/lib/icon';
import AntdSpin from 'antd/lib/spin';
import * as React from 'react';
 
interface IProps {
  size: number;
}
 
const Spin = ({ size }: IProps) => (
  <AntdSpin
    indicator={<Icon type="loading" style={{ fontSize: size }} spin={true} />}
  />
);
export default Spin;