chore: update
This commit is contained in:
@@ -34,13 +34,3 @@ export const getStatusColors = (colors: Colors): Record<string, string> => ({
|
||||
offline: colors.textMuted,
|
||||
});
|
||||
|
||||
export const getCategoryColor = (category: string, colors: Colors): string => {
|
||||
const map: Record<string, string> = {
|
||||
"weed&hash": colors.categoryWeedHash,
|
||||
tous: colors.categoryTous,
|
||||
"zipette&co": colors.categoryZipette,
|
||||
"gros&semi": colors.categoryGros,
|
||||
};
|
||||
const key = category?.toLowerCase().trim();
|
||||
return map[key] || colors.accent;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user