Skip to content

Commit 1a1a2e6

Browse files
chore: updated icons for category
1 parent 65eb98e commit 1a1a2e6

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

app/(dashboard)/_components/category/categories.tsx

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,13 @@
33
import { Category } from '@prisma/client';
44
import { useTranslations } from 'next-intl';
55
import { IconType } from 'react-icons';
6-
import {
7-
FcEngineering,
8-
FcFilmReel,
9-
FcMultipleDevices,
10-
FcMusic,
11-
FcOldTimeCamera,
12-
FcSalesPerformance,
13-
FcSportsMode,
14-
} from 'react-icons/fc';
6+
import { FcCollaboration, FcGraduationCap } from 'react-icons/fc';
157

168
import { CategoryItem } from './category-item';
179

1810
const iconMap: Record<Category['name'], IconType> = {
19-
'Computer Science': FcMultipleDevices,
20-
Accounting: FcSalesPerformance,
21-
Engineering: FcEngineering,
22-
Filming: FcFilmReel,
23-
Fitness: FcSportsMode,
24-
Music: FcMusic,
25-
Photography: FcOldTimeCamera,
11+
'Self-placed': FcGraduationCap,
12+
Workshop: FcCollaboration,
2613
};
2714

2815
type CategoryProps = { items: Category[] };

scripts/seed.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,10 @@ async function main() {
88
await database.category.createMany({
99
data: [
1010
{
11-
name: 'Computer Science',
11+
name: 'Self-placed',
1212
},
1313
{
14-
name: 'Music',
15-
},
16-
{
17-
name: 'Engineering',
18-
},
19-
{
20-
name: 'Filming',
14+
name: 'Workshop',
2115
},
2216
],
2317
});

0 commit comments

Comments
 (0)