Guest User

Untitled

a guest
Feb 15th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. renderFileInput = ({ input, type, meta }) => {
  2. const { mimeType } = this.props;
  3. return (
  4. <div>
  5. <input
  6. name={input.name}
  7. type={type}
  8. accept={mimeType}
  9. onChange={event => this.handleChange(event, input)}
  10. />
  11. {meta && meta.invalid && meta.error && (
  12. <Message negative header="Error:" content={meta.error} />
  13. )}
  14. </div>
  15. );
  16. };
Add Comment
Please, Sign In to add comment