File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 11/**
2- * 💡 In this example, our backend is using a slightly
3- * different enum to us. So we've build a map to be able
4- * to easily access the backend enum (in SCREAMING_SNAKE_CASE)
5- * to frontend (in camelCase)
2+ * 🧑💻 We're building a scheduling app for a large HR company.
3+ * We built our backends and frontends separately, but there
4+ * was a bit of miscommunication about the enums we would use
5+ * to represent different bookings. The backend is now using
6+ * SCREAMING_SNAKE_CASE, but we're using camelCase.
7+ *
8+ * So we've made a map to convert from the backend version of
9+ * ProgramMode - GROUP, ANNOUNCEMENT etc - to the frontend
10+ * version - group, announcement etc.
611 */
712
813export const programModeEnumMap = {
You can’t perform that action at this time.
0 commit comments