Created
August 9, 2018 19:02
-
-
Save wnqueiroz/06119403e34ff8de1ac2d682b621bf8e to your computer and use it in GitHub Desktop.
React Context: src/components/Loading.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import Spinner from 'react-spinkit' | |
const Loading = ({ loading, message }) => { | |
return loading ? ( | |
<div className='overlay-content'> | |
<div className='wrapper'> | |
<Spinner | |
name='pacman' | |
fadeIn='none' | |
color='yellow' | |
/> | |
<span className='message'> | |
{message} | |
</span> | |
</div> | |
</div> | |
) : null | |
} | |
export default Loading |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment