feat: 在食物库页面中集成每日营养数据刷新功能,优化饮食记录成功后的用户体验;移除营养目标计算逻辑以简化组件
This commit is contained in:
@@ -108,9 +108,6 @@ export function NutritionRadarCard({
|
||||
}: NutritionRadarCardProps) {
|
||||
const [currentMealType] = useState<'breakfast' | 'lunch' | 'dinner' | 'snack'>('breakfast');
|
||||
const [showFoodOverlay, setShowFoodOverlay] = useState(false);
|
||||
// 计算营养目标
|
||||
const calorieGoal = nutritionGoals?.calories ?? 2000;
|
||||
const proteinGoal = nutritionGoals?.proteinGoal ?? 50;
|
||||
|
||||
const nutritionStats = useMemo(() => {
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user