diff --git a/src/components/Tutorial/Builder/StepType.js b/src/components/Tutorial/Builder/StepType.js new file mode 100644 index 0000000..f482990 --- /dev/null +++ b/src/components/Tutorial/Builder/StepType.js @@ -0,0 +1,37 @@ +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import { connect } from 'react-redux'; +import { changeContent } from '../../../actions/tutorialBuilderActions'; + +import Radio from '@material-ui/core/Radio'; +import RadioGroup from '@material-ui/core/RadioGroup'; +import FormControlLabel from '@material-ui/core/FormControlLabel'; + +class StepType extends Component { + + render() { + return ( + {this.props.changeContent(this.props.index, 'type', e.target.value)}}> + } + label="Anleitung" + labelPlacement="end" + /> + } + label="Aufgabe" + labelPlacement="end" + /> + + ); + }; +} + +StepType.propTypes = { + changeContent: PropTypes.func.isRequired +}; + +export default connect(null, { changeContent })(StepType);