refactor(health): remove basalEnergyBurned from global state and move to local component

Remove basalEnergyBurned from global health data structure and refactor BasalMetabolismCard to fetch its own data locally. This decouples the component from global state and improves data locality.

- Remove basalEnergyBurned from HealthData interface and health utilities
- Update BasalMetabolismCard to use selectedDate prop and fetch data locally
- Simplify statistics screen by removing unused basalMetabolism variable
- Update nutrition radar card to use activeCalories only for burned calories calculation
This commit is contained in:
richarjiang
2025-09-19 17:01:45 +08:00
parent 9bcea25a2f
commit fb85a5f30c
4 changed files with 36 additions and 31 deletions

View File

@@ -13,7 +13,6 @@ export interface FitnessRingsData {
export interface HealthData {
activeCalories: number | null;
basalEnergyBurned: number | null;
hrv: number | null;
heartRate: number | null;
activeEnergyBurned: number;