You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every entity should have their own icon set scoped by the EntityType. I.e. handled with a nested object and concatenated keys:
// @TODO: derive the icon keys from hereconsticonClasses={[EntityType.TASK]: {
...taskStatusIconClassMap,[PageEntityState.Loading]: 'fas fa-loading'// ...}// ...}exporttypeIconKey=LeavesConcatenated<typeoficonClasses>='Task.Open'|'Task.Loading'// ...
Maybe we should have the tailwind color classes typed:
importcolorsfrom'colors.json'// @TODO: derive the color classes from hereconstcolorClasses={text: colors,bg: colors,}exporttypeTwColorClass=LeavesConcatenated<typeofcolorClasses>='text-primary-700'|'bg-submit-400'// ...
The text was updated successfully, but these errors were encountered:
EntityType
. I.e. handled with a nested object and concatenated keys:The text was updated successfully, but these errors were encountered: