Created
September 22, 2016 13:18
-
-
Save johnrhampton/b69e115a469b2554bf1d1fdbdeaf62d9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 classNames from 'classnames'; | |
export default ({loading}) => { | |
let loading_class = classNames('dissolve-animation', { | |
'hide': !loading.show | |
}); | |
let message_class = classNames('loading-overlay-message', { | |
'hide': !loading.message | |
}); | |
return ( | |
<div className={loading_class}> | |
<div className="page-loading"> | |
<div className={message_class}> | |
{loading.message} | |
</div> | |
<div className="loading-overlay"> | |
<div className="mdl-spinner mdl-js-spinner is-active"></div> | |
</div> | |
</div> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment