Skip to content

Commit 65a71f8

Browse files
committed
make first letter caps
1 parent b26a7b2 commit 65a71f8

File tree

4 files changed

+706
-892
lines changed

4 files changed

+706
-892
lines changed

peerprep-fe/src/app/(main)/components/filter/FilterBadge.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ import { cn } from '@/lib/utils';
66
export function FilterBadge({ filterType, value, onRemove }: FilterBadgeProps) {
77
const getBadgeColor = () => {
88
switch (filterType) {
9-
case 'difficulty':
9+
case 'Difficulty':
1010
return value === 'easy'
1111
? 'bg-green-600'
1212
: value === 'medium'
1313
? 'bg-yellow-600'
1414
: value === 'hard'
1515
? 'bg-red-600'
1616
: 'bg-gray-600';
17-
case 'status':
17+
case 'Status':
1818
return value === 'todo'
1919
? 'bg-yellow-600'
2020
: value === 'solved'
2121
? 'bg-green-600'
2222
: 'bg-gray-600';
23-
case 'topics':
23+
case 'Topics':
2424
return 'bg-indigo-600';
2525
}
2626
};

peerprep-fe/src/app/(main)/components/filter/FilterBar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default function FilterBar({
9090
<div className="flex flex-wrap gap-2">
9191
{filters.difficulty && (
9292
<FilterBadge
93-
filterType="difficulty"
93+
filterType="Difficulty"
9494
value={
9595
DIFFICULTY_OPTIONS.find((opt) => opt.value === filters.difficulty)
9696
?.label || ''
@@ -100,7 +100,7 @@ export default function FilterBar({
100100
)}
101101
{filters.status && (
102102
<FilterBadge
103-
filterType="status"
103+
filterType="Status"
104104
value={
105105
STATUS_OPTIONS.find((opt) => opt.value === filters.status)
106106
?.label || ''
@@ -112,7 +112,7 @@ export default function FilterBar({
112112
filters.topics.map((topic) => (
113113
<FilterBadge
114114
key={`topics-${topic}`}
115-
filterType="topics"
115+
filterType="Topics"
116116
value={topic}
117117
onRemove={() => removeFilter('topics', topic)}
118118
/>

peerprep-fe/src/types/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface ProblemDialogData {
1818
}
1919

2020
interface FilterBadgeProps {
21-
filterType: 'difficulty' | 'status' | 'topics';
21+
filterType: 'Difficulty' | 'Status' | 'Topics';
2222
value: string;
2323
onRemove: (filterType: string, value: string) => void;
2424
}

0 commit comments

Comments
 (0)