Skip to content

Commit d18e20d

Browse files
Sean PrashadSean Prashad
authored andcommitted
Use lowercase for difficulty CSS
1 parent 8b3aab6 commit d18e20d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

web/src/components/Table/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ const Table = () => {
3737
accessor: 'difficulty',
3838
disableSortBy: true,
3939
Cell: cellInfo => (
40-
<Badge className={cellInfo.row.original.difficulty} pill>
40+
<Badge
41+
className={cellInfo.row.original.difficulty.toLowerCase()}
42+
pill
43+
>
4144
{cellInfo.row.original.difficulty}
4245
</Badge>
4346
),

web/src/components/Table/styles.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
padding: 0;
1212
}
1313

14-
.Easy {
14+
.easy {
1515
background-color: green;
1616
}
1717

18-
.Medium {
18+
.medium {
1919
background-color: orange;
2020
}
2121

22-
.Hard {
22+
.hard {
2323
background-color: red;
2424
}
2525
}

0 commit comments

Comments
 (0)