feat: Add links to the levels

This commit is contained in:
Alexander Polynomdivision 2018-09-14 17:19:11 +02:00
parent 8da7123f62
commit d8c49fde9c

View File

@ -7,6 +7,8 @@ import Card from '@material-ui/core/Card';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-ui/core/CardContent';
import { Link } from "react-router-dom";
import { ILevel } from "../models/lesson";
interface IProps {
@ -37,7 +39,10 @@ export default class Dashboard extends React.Component<{}> {
</Typography>
</CardContent>
<CardActions>
<Button className="lesson-card-btn">
<Button
component={Link}
to={`/level/${level.level}`}
className="lesson-card-btn">
Zum Level
</Button>
</CardActions>