Update calendar with multi-select

This commit is contained in:
2026-06-14 22:20:32 +02:00
parent 88afa17666
commit dead5e4897
14 changed files with 955 additions and 96 deletions
+20
View File
@@ -0,0 +1,20 @@
"use strict";
(() => {
// src/utils/leaveTypes.ts
function getColorForType(type) {
const colorMap = {
vacation: "#4CAF50",
sjukpenning: "#FF9800",
lagsta: "#2196F3"
};
return colorMap[type] ?? "#9E9E9E";
}
function getLabelForType(type) {
const labelMap = {
vacation: "Vacation",
sjukpenning: "Sick Leave",
lagsta: "Parental"
};
return labelMap[type] ?? "Unknown";
}
})();