status-js-desktop/app/components/Loaders.js

17 lines
494 B
JavaScript
Raw Normal View History

2018-11-17 12:07:13 +00:00
import React from 'react';
import { css } from 'react-emotion';
// First way to import
import { RingLoader } from 'react-spinners';
const containerStyle = { display: 'flex', justifyContent: 'center', alignItems: 'center', height: '100vh', margin: '0 30% 0 30%' };
export const FullScreenLoader = ({ loading }) => (
<div className='sweet-loading' style={containerStyle}>
<RingLoader
sizeUnit={"px"}
size={150}
color={'#4A90E2'}
loading={loading}
/>
</div>
)