Skip to content

Commit 04deef0

Browse files
joonas-asanteri0200
authored andcommitted
[Course filter] Show course code in addition to its name in card
1 parent a8e7575 commit 04deef0

File tree

1 file changed

+4
-1
lines changed
  • services/frontend/src/components/FilterView/filters/courses

1 file changed

+4
-1
lines changed

services/frontend/src/components/FilterView/filters/courses/CourseCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ export const CourseCard = ({
5656
})}
5757
>
5858
<Stack direction="row" sx={{ justifyContent: 'space-between' }}>
59-
<Typography sx={{ my: 2 }}>{getTextIn(course.course?.name)}</Typography>
59+
<Box sx={{ mb: 2 }}>
60+
<Typography>{getTextIn(course.course?.name)}</Typography>
61+
<Typography sx={{ color: 'text.secondary' }}>{course.course?.code}</Typography>
62+
</Box>
6063
<ClearIcon
6164
data-cy={`courseFilter-${course.course?.code}-clear`}
6265
onClick={() => onChange(null)}

0 commit comments

Comments
 (0)