2018-06-13 10:39:50 +02:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* LoadingIndicatorPage
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import React from 'react';
|
2018-09-07 16:46:16 +02:00
|
|
|
import PropTypes from 'prop-types';
|
2018-06-13 10:39:50 +02:00
|
|
|
|
|
|
|
|
import styles from './styles.scss';
|
|
|
|
|
|
2018-09-07 16:46:16 +02:00
|
|
|
const LoadingIndicatorPage = (props) => {
|
|
|
|
|
if (props.error) {
|
|
|
|
|
return <div>An error occurred</div>;
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-13 10:39:50 +02:00
|
|
|
return (
|
|
|
|
|
<div className={styles.loaderPage}><div /></div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
2018-09-07 16:46:16 +02:00
|
|
|
LoadingIndicatorPage.defaultProps = {
|
|
|
|
|
error: null,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
LoadingIndicatorPage.propTypes = {
|
|
|
|
|
error: PropTypes.object,
|
|
|
|
|
};
|
|
|
|
|
|
2018-06-13 10:39:50 +02:00
|
|
|
export default LoadingIndicatorPage;
|