fix icon issue

This commit is contained in:
Brandon Egger
2023-03-16 16:19:26 -05:00
parent c118a1a55c
commit 6802f5673d
4 changed files with 135 additions and 90 deletions

21
src/utils/enumWordLut.ts Normal file
View File

@ -0,0 +1,21 @@
import { type Platform } from "@prisma/client";
/**
* Takes a platform enum and translates it to readable form.
*/
export const translateEnumPlatform = (value: Platform) => {
switch(value) {
case "APP_ANDROID": {
return "Android";
}
case "APP_IOS": {
return "Apple";
}
case "PDF": {
return "PDF Document";
}
case "WEBSITE": {
return "Website"
}
}
}