All files / javascripts/components Loading.jsx

0% Statements 0/7
100% Branches 0/0
0% Functions 0/1
0% Lines 0/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28                                                       
import React from 'react';
import PropTypes from 'prop-types';
 
const propTypes = {
  size: PropTypes.number,
};
const defaultProps = {
  size: 25,
};
 
export default function Loading(props) {
  return (
    <img
      className="loading"
      alt="Loading..."
      src="/static/assets/images/loading.gif"
      style={{
        width: props.size,
        height: props.size,
        padding: 0,
        margin: 0,
      }}
    />
  );
}
Loading.propTypes = propTypes;
Loading.defaultProps = defaultProps;