Skip to content

Commit

Permalink
switched to enums
Browse files Browse the repository at this point in the history
  • Loading branch information
lovretomic committed Jan 21, 2025
1 parent fcd01af commit 32bcaf1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions apps/app/src/components/ScheduleCard/ScheduleCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,30 @@ const ScheduleCard: React.FC<ScheduleCardProps> = ({

function getThemeLabel(eventTheme: Theme) {
switch (eventTheme) {
case 'dev':
case Theme.Dev:
return 'DEV';
case 'design':
case Theme.Design:
return 'DIZ';
case 'marketing':
case Theme.Marketing:
return 'MARK';
case 'tech':
return 'MULT';
case Theme.Tech:
return 'TECH';
}
}

function getTypeLabel(eventType: EventType) {
switch (eventType) {
case 'lecture':
case EventType.Lecture:
return 'PREDAVANJE';
case 'workshop':
case EventType.Workshop:
return 'RADIONICA';
case 'flyTalk':
case EventType.FlyTalk:
return 'FLY TALK';
case 'campfireTalk':
case EventType.CampfireTalk:
return 'CAMPFIRE TALK';
case 'panel':
case EventType.Panel:
return 'PANEL';
case 'other':
case EventType.Other:
return 'OSTALO';
}
}
Expand Down

0 comments on commit 32bcaf1

Please sign in to comment.