feat: Add links to the levels
This commit is contained in:
parent
8da7123f62
commit
d8c49fde9c
@ -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>
|
||||
|
Reference in New Issue
Block a user