Skip to content

Commit f1cf493

Browse files
committed
link to course pages from stats
1 parent 8dfc35a commit f1cf493

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/client/components/Admin/Statistics.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import {
1313
Select,
1414
MenuItem,
1515
Tooltip,
16+
Link,
1617
} from '@mui/material'
18+
import { Link as RouterLink } from 'react-router-dom'
1719
import useStatistics from '../../hooks/useStatistics'
1820
import { Statistic } from '../../types'
1921
import programme from '../../locales/programme.json'
@@ -155,7 +157,9 @@ const Statistics = () => {
155157
<Typography>{chat.codes.join(', ')}</Typography>
156158
</TableCell>
157159
<TableCell align="left">
158-
<Typography>{chat.name[language]}</Typography>
160+
<Link to={`/courses/${chat.id}`} component={RouterLink}>
161+
<Typography>{chat.name[language]}</Typography>
162+
</Link>
159163
</TableCell>
160164
<TableCell align="left">
161165
<Typography>

0 commit comments

Comments
 (0)