import React, { Component } from 'react' import { Button, Input, Header } from 'semantic-ui-react' import './CreateTableForm.css' import CreateTableController from '../../Controllers/CreateTableController' class CreateTableForm extends Component { constructor () { super() this.controller = new CreateTableController() this.tableLabelInput = React.createRef() this.tableFileInput = React.createRef() } handleSubmit = async e => { e.preventDefault() const label = this.tableLabelInput.current.inputRef.current.value const file = this.tableFileInput.current.inputRef.current.files[0] this.controller.submitLocalFile({ label, file }) this.tableLabelInput.current.inputRef.current.value = '' } render = () => { return (
Create Table From File

) } } export default CreateTableForm