feat(team-accounts): enhance team account statistics and health details components with new data and improved calculations
This commit is contained in:
@@ -70,15 +70,13 @@ export function getBmiStatus(
|
||||
export function getBmiBackgroundColor(bmiStatus: BmiCategory | null): string {
|
||||
switch (bmiStatus) {
|
||||
case BmiCategory.UNDER_WEIGHT:
|
||||
case BmiCategory.OVER_WEIGHT:
|
||||
return 'bg-warning';
|
||||
case BmiCategory.NORMAL:
|
||||
return 'bg-success';
|
||||
case BmiCategory.OVER_WEIGHT:
|
||||
return 'bg-warning';
|
||||
case BmiCategory.VERY_OVERWEIGHT:
|
||||
return 'bg-destructive';
|
||||
case BmiCategory.OBESE:
|
||||
return 'bg-error';
|
||||
return 'bg-destructive';
|
||||
default:
|
||||
return 'bg-success';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user