#11 - Adding fromSnakeCase for categories in form
This commit is contained in:
parent
7b35a5aaff
commit
3fa78d78c8
@ -1,6 +1,6 @@
|
||||
---
|
||||
import type { Courses } from '../../../types/codyops-courses';
|
||||
import { toSnakeCase } from '../../../utils';
|
||||
import { toSnakeCase, fromSnakeCase } from '../../../utils';
|
||||
|
||||
type Props = {
|
||||
list?: Courses[];
|
||||
@ -37,7 +37,7 @@ const groupedCourses = list?.reduce((acc, course) => {
|
||||
>
|
||||
<div class="flex-grow-1 ps-3">
|
||||
<div class="row">
|
||||
<div class="col-8 text-white">{category}</div>
|
||||
<div class="col-8 text-white">{fromSnakeCase(category)}</div>
|
||||
<!-- End Col -->
|
||||
|
||||
<div class="col-4 text-end">
|
||||
|
Loading…
x
Reference in New Issue
Block a user