display requirements

This commit is contained in:
Delucse
2020-09-14 19:00:15 +02:00
parent 93e047f4bf
commit 84d4166cab
8 changed files with 144 additions and 194 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Hardware from './Hardware';
import Requirement from './Requirement';
import BlocklyWindow from '../Blockly/BlocklyWindow';
import Grid from '@material-ui/core/Grid';
@@ -21,7 +22,7 @@ class Instruction extends Component {
{isHardware ?
<Hardware picture={step.hardware}/> : null}
{areRequirements > 0 ?
<Typography style={{marginBottom: '5px'}}>Voraussetzungen: todo</Typography> : null}
<Requirement tutorialIds={step.requirements}/> : null}
{step.xml ?
<Grid container spacing={2} style={{marginBottom: '5px'}}>
<Grid item xs={12}>