feat(team-accounts): enhance team account statistics and health details components with new data and improved calculations
This commit is contained in:
@@ -4,6 +4,7 @@ export enum PAGE_VIEW_ACTION {
|
||||
VIEW_ANALYSIS_RESULTS = 'VIEW_ANALYSIS_RESULTS',
|
||||
REGISTRATION_SUCCESS = 'REGISTRATION_SUCCESS',
|
||||
VIEW_ORDER_ANALYSIS = 'VIEW_ORDER_ANALYSIS',
|
||||
VIEW_TEAM_ACCOUNT_DASHBOARD = 'VIEW_TEAM_ACCOUNT_DASHBOARD',
|
||||
}
|
||||
|
||||
export const createPageViewLog = async ({
|
||||
|
||||
@@ -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