mirror of
https://github.com/apache/superset.git
synced 2026-04-10 03:45:22 +00:00
* [sql lab] improvements to the left panel * better error handling with error notifications * table is added instantly with a loading image * Fixing tests * Fixed tests
28 lines
508 B
JavaScript
28 lines
508 B
JavaScript
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;
|