diff --git a/src/components/Blockly/toolbox/Toolbox.js b/src/components/Blockly/toolbox/Toolbox.js index 627f961..327c5de 100644 --- a/src/components/Blockly/toolbox/Toolbox.js +++ b/src/components/Blockly/toolbox/Toolbox.js @@ -5,7 +5,6 @@ import '@blockly/block-plus-minus'; import { TypedVariableModal } from '@blockly/plugin-typed-variable-modal'; import * as Blockly from 'blockly/core'; -import BlocklyComponent from '../BlocklyComponent'; diff --git a/src/components/Tutorial/Builder/Builder.js b/src/components/Tutorial/Builder/Builder.js index 5d17cdf..cca4296 100644 --- a/src/components/Tutorial/Builder/Builder.js +++ b/src/components/Tutorial/Builder/Builder.js @@ -8,7 +8,6 @@ import { saveAs } from 'file-saver'; import { detectWhitespacesAndReturnReadableResult } from '../../../helpers/whitespace'; import Breadcrumbs from '../../Breadcrumbs'; -import Id from './Id'; import Textfield from './Textfield'; import Step from './Step'; import Dialog from '../../Dialog'; diff --git a/src/components/Tutorial/Builder/Hardware.js b/src/components/Tutorial/Builder/Hardware.js index 770cc8c..f876e7e 100644 --- a/src/components/Tutorial/Builder/Hardware.js +++ b/src/components/Tutorial/Builder/Hardware.js @@ -47,17 +47,17 @@ class Requirements extends Component { onChange = (hardware) => { var hardwareArray = this.props.value; - if(hardwareArray.filter(value => value === hardware).length > 0){ + if (hardwareArray.filter(value => value === hardware).length > 0) { hardwareArray = hardwareArray.filter(value => value !== hardware); } else { hardwareArray.push(hardware); - if(this.props.error){ + if (this.props.error) { this.props.deleteError(this.props.index, 'hardware'); } } this.props.changeContent(hardwareArray, this.props.index, 'hardware'); - if(hardwareArray.length === 0){ + if (hardwareArray.length === 0) { this.props.setError(this.props.index, 'hardware'); } } @@ -65,26 +65,26 @@ class Requirements extends Component { render() { var cols = isWidthDown('md', this.props.width) ? isWidthDown('sm', this.props.width) ? isWidthDown('xs', this.props.width) ? 2 : 3 : 4 : 6; return ( -
- Hardware - Beachte, dass die Reihenfolge des Auswählens maßgebend ist. +
+ Hardware + Beachte, dass die Reihenfolge des Auswählens maßgebend ist. {this.props.error ? Wähle mindestens eine Hardware-Komponente aus. : null} - {hardware.map((picture,i) => ( - this.onChange(picture.id)} classes={{tile: this.props.value.filter(value => value === picture.id).length > 0 ? this.props.classes.active : this.props.classes.border}}> -
- {picture.name} -
- - {picture.name} -
- } - /> - - ))} + {hardware.map((picture, i) => ( + this.onChange(picture.id)} classes={{ tile: this.props.value.filter(value => value === picture.id).length > 0 ? this.props.classes.active : this.props.classes.border }}> +
+ {picture.name} +
+ + {picture.name} +
+ } + /> + + ))} );