Skip to content

Instantly share code, notes, and snippets.

@jsmanifest
Created June 16, 2019 17:48
Show Gist options
  • Save jsmanifest/0edb90724dcb3abaa92305df8321063e to your computer and use it in GitHub Desktop.
Save jsmanifest/0edb90724dcb3abaa92305df8321063e to your computer and use it in GitHub Desktop.
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