perf: 优化

This commit is contained in:
richarjiang
2025-08-29 11:22:07 +08:00
parent f38f495008
commit 93db9e2928
2 changed files with 202 additions and 233 deletions

View File

@@ -216,9 +216,6 @@ export default function NutritionRecordsScreen() {
const renderRecord = ({ item, index }: { item: DietRecord; index: number }) => (
<NutritionRecordCard
record={item}
showTimeline={true}
isFirst={index === 0}
isLast={index === records.length - 1}
onDelete={() => handleDeleteRecord(item.id)}
/>
);