#11 - Link courses in career program overview
This commit is contained in:
parent
663b256112
commit
8c17c0e2ee
@ -2,6 +2,7 @@
|
||||
import type { Courses } from '../../../types/codyops-courses';
|
||||
import type { Careers } from '../../../types/codyops-careers';
|
||||
import { toSnakeCase, fromSnakeCase } from '../../../utils';
|
||||
import { slugifyCourse } from '../../../utils/text';
|
||||
|
||||
type Props = {
|
||||
career: Careers;
|
||||
@ -82,9 +83,9 @@ const groupedCourses = career.courses?.reduce((acc, courseItem) => {
|
||||
<i class="bi bi bi-arrow-right"></i>
|
||||
</div>
|
||||
<div class="flex-grow-1 ms-2">
|
||||
<span class="small text-white"
|
||||
<a href={`/cursos/${slugifyCourse(course.name+'-'+course.level)}/`} class="small text-white"
|
||||
>{course.name}
|
||||
<span class="badge bg-course text-dark rounded-pill ms-1">{course.level}</span></span
|
||||
<span class="badge bg-course text-dark rounded-pill ms-1">{course.level}</span></a
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user