definig specific error in step component

This commit is contained in:
Delucse
2020-09-20 16:22:07 +02:00
parent b03ef6b54a
commit e20a40aaf5
7 changed files with 39 additions and 43 deletions
+3 -3
View File
@@ -130,8 +130,8 @@ class Builder extends Component {
<Divider variant='fullWidth' style={{margin: '10px 0 30px 0'}}/>
{/*Tutorial-Builder-Form*/}
<Id error={this.props.error} value={this.props.id}/>
<Textfield value={this.props.title} property={'title'} label={'Titel'} error={this.props.error}/>
<Id error={this.props.error.id} value={this.props.id}/>
<Textfield value={this.props.title} property={'title'} label={'Titel'} error={this.props.error.title}/>
{this.props.steps.map((step, i) =>
<Step step={step} index={i} />
@@ -165,7 +165,7 @@ class Builder extends Component {
}
>
{this.state.string ?
<Textfield value={this.props.json} property={'json'} label={'JSON'} multiline error={this.props.error}/>
<Textfield value={this.props.json} property={'json'} label={'JSON'} multiline error={this.props.error.json}/>
: null}
</Dialog>