import React from 'react'; class MetadataInputs extends React.Component { constructor (props) { super(props); this.state = { showInputs : false, }; this.toggleShowInputs = this.toggleShowInputs.bind(this); this.handleInput = this.handleInput.bind(this); this.handleSelection = this.handleSelection.bind(this); } toggleShowInputs () { if (this.state.showInputs) { this.setState({'showInputs': false}); } else { this.setState({'showInputs': true}); } } handleInput (event) { event.preventDefault(); const target = event.target; const name = target.name; const value = target.type === 'checkbox' ? target.checked : target.value; this.props.updateUploaderState(name, value); } handleSelection (event) { const selectedOption = event.target.selectedOptions[0].value; this.props.updateUploaderState('', value); } render () { return (