Revert "Merge branch 'assessment' into tutorial"

This reverts commit e322795f25, reversing
changes made to dddd9432db.
This commit is contained in:
Delucse
2020-09-08 11:30:25 +02:00
parent e322795f25
commit 6a94ce618c
12 changed files with 125 additions and 466 deletions
+3 -5
View File
@@ -4,11 +4,10 @@ import Breadcrumbs from '../Breadcrumbs';
import StepperHorizontal from './StepperHorizontal';
import StepperVertical from './StepperVertical';
import BlocklyWindow from '../Blockly/BlocklyWindow';
import SolutionCheck from './SolutionCheck';
import CodeViewer from '../CodeViewer';
import NotFound from '../NotFound';
import { tutorials } from './tutorials';
import tutorials from './tutorials.json';
import withWidth, { isWidthUp } from '@material-ui/core/withWidth';
import Tabs from '@material-ui/core/Tabs';
@@ -25,7 +24,7 @@ class Tutorial extends Component {
componentDidUpdate(props, state){
if(state.tutorialId !== Number(this.props.match.params.tutorialId)){
this.setState({ value: 'introduction', tutorialId: Number(this.props.match.params.tutorialId) });
this.setState({tutorialId: Number(this.props.match.params.tutorialId)})
}
}
@@ -66,8 +65,7 @@ class Tutorial extends Component {
'Hier könnte eine Anleitung stehen.': null }
{this.state.value === 'assessment' ?
<Grid container spacing={2}>
<Grid item xs={12} md={6} lg={8} style={{ position: 'relative' }}>
<SolutionCheck tutorial={tutorialId-1}/>
<Grid item xs={12} md={6} lg={8}>
<BlocklyWindow />
</Grid>
<Grid item xs={12} md={6} lg={4}>