import React, { Component } from 'react'
import { Input, Grid, Button, Icon, List } from 'semantic-ui-react'
import './CreateNodule.css'
class CreateTransformNoduleForm extends Component {
constructor () {
super()
this.state = {
structure: {}
}
this.initialKeyInput = React.createRef()
this.newKeyInput = React.createRef()
document.addEventListener('updateTables', this.updateTableList)
}
addStructureInput = () => {
let structure = this.state.structure || {}
const initialKey = this.initialKeyInput.current.inputRef.current.value
const newKey = this.newKeyInput.current.inputRef.current.value
if (initialKey && newKey) structure[initialKey] = newKey
this.setState({ structure: structure })
}
getStructureProperties = () => {
return this.state.structure
}
renderStructure = () => {
const { structure } = this.state
let initialKeyElements = []
let newKeyElements = []
for (let key in structure) {
initialKeyElements.push(