diff --git a/src/components/Calendar/Components/Entries.tsx b/src/components/Calendar/Components/Entries.tsx index 23e07a05b..2a20fb22e 100644 --- a/src/components/Calendar/Components/Entries.tsx +++ b/src/components/Calendar/Components/Entries.tsx @@ -1,5 +1,6 @@ import { ExpandLess, ExpandMore } from '@mui/icons-material'; import { + Box, // import box to show the hint Card, CardContent, CardHeader, @@ -37,7 +38,7 @@ const Entries: React.FC = ({ selectedDay }) => { - {t("entries")} - {selectedDay.date.toLocaleDateString()} + {t("Your daily records")} - {selectedDay.date.toLocaleDateString()} } /> @@ -153,6 +154,26 @@ const Entries: React.FC = ({ selectedDay }) => { } + {/* when no data loaded, show up a hint */} + {!selectedDay.weightEntry && + selectedDay.measurements.length === 0 && + !selectedDay.workoutSession && + selectedDay.nutritionLogs.length ===0 && ( + + + {t("You haven't logged your weight/workout/nutritions today.")} + + + {t("Add your first record")} + + + )}