Created
December 6, 2023 08:11
-
-
Save transcendr/cd83a42b5f11d3e12f83138d1e37558f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function typeToColor(type: string) { | |
| switch (type) { | |
| case 'repos': | |
| return 'SteelBlue'; | |
| case 'conduite': | |
| return 'MediumAquamarine'; | |
| case 'travail': | |
| return 'Red'; | |
| case 'coupure': | |
| return 'SteelBlue'; | |
| case 'ac': | |
| return 'Fuchsia'; | |
| case 'de': | |
| return 'Grey'; | |
| case 'mad': | |
| return 'Yellow'; | |
| case 'service': | |
| return 'LightGray'; | |
| default: | |
| return 'White'; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment