Created
June 16, 2019 17:48
-
-
Save jsmanifest/0edb90724dcb3abaa92305df8321063e 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 idleSrc from './images/jade_input_bg.jpg' | |
const FileUploaderScreen = ({ status }) => { | |
let src | |
switch (status) { | |
case 'IDLE': | |
src = idleSrc | |
break | |
default: | |
src = idleSrc | |
break | |
} | |
return ( | |
<div className="uploader-input"> | |
<div | |
style={{ backgroundImage: `url("${src}")` }} | |
className="uploader-overlay" | |
/> | |
</div> | |
) | |
} | |
export default FileUploaderScreen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment