File tree Expand file tree Collapse file tree 2 files changed +5
-24
lines changed
app/(dashboard)/_components/category Expand file tree Collapse file tree 2 files changed +5
-24
lines changed Original file line number Diff line number Diff line change 3
3
import { Category } from '@prisma/client' ;
4
4
import { useTranslations } from 'next-intl' ;
5
5
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' ;
15
7
16
8
import { CategoryItem } from './category-item' ;
17
9
18
10
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 ,
26
13
} ;
27
14
28
15
type CategoryProps = { items : Category [ ] } ;
Original file line number Diff line number Diff line change @@ -8,16 +8,10 @@ async function main() {
8
8
await database . category . createMany ( {
9
9
data : [
10
10
{
11
- name : 'Computer Science ' ,
11
+ name : 'Self-placed ' ,
12
12
} ,
13
13
{
14
- name : 'Music' ,
15
- } ,
16
- {
17
- name : 'Engineering' ,
18
- } ,
19
- {
20
- name : 'Filming' ,
14
+ name : 'Workshop' ,
21
15
} ,
22
16
] ,
23
17
} ) ;
You can’t perform that action at this time.
0 commit comments