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 CardActions from '@material-ui/core/CardActions';
|
||||||
import CardContent from '@material-ui/core/CardContent';
|
import CardContent from '@material-ui/core/CardContent';
|
||||||
|
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
import { ILevel } from "../models/lesson";
|
import { ILevel } from "../models/lesson";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
@ -37,7 +39,10 @@ export default class Dashboard extends React.Component<{}> {
|
|||||||
</Typography>
|
</Typography>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
<CardActions>
|
<CardActions>
|
||||||
<Button className="lesson-card-btn">
|
<Button
|
||||||
|
component={Link}
|
||||||
|
to={`/level/${level.level}`}
|
||||||
|
className="lesson-card-btn">
|
||||||
Zum Level
|
Zum Level
|
||||||
</Button>
|
</Button>
|
||||||
</CardActions>
|
</CardActions>
|
||||||
|
Reference in New Issue
Block a user