Heim: nur noch 'Nächster Termin'; letzter Eintrag/Gewicht/Anzahl raus
This commit is contained in:
parent
cf625f3391
commit
ef7907d74b
1 changed files with 0 additions and 24 deletions
|
|
@ -169,14 +169,6 @@ struct HeimView: View {
|
|||
|
||||
private func dashboardCards(_ snap: DashboardSnapshot) -> some View {
|
||||
VStack(spacing: 10) {
|
||||
if let last = snap.lastDiary, last.titel != nil {
|
||||
infoCard(
|
||||
icon: "book.fill",
|
||||
title: "Letzter Eintrag",
|
||||
value: last.titel ?? "—",
|
||||
detail: last.datum.map(DiaryUtil.format) ?? ""
|
||||
)
|
||||
}
|
||||
if let appt = snap.nextAppointment, let bez = appt.bezeichnung {
|
||||
infoCard(
|
||||
icon: "calendar",
|
||||
|
|
@ -185,22 +177,6 @@ struct HeimView: View {
|
|||
detail: appt.naechstes.map(DiaryUtil.format) ?? ""
|
||||
)
|
||||
}
|
||||
if let weight = snap.lastWeight, let wert = weight.wert {
|
||||
infoCard(
|
||||
icon: "scalemass.fill",
|
||||
title: "Letztes Gewicht",
|
||||
value: String(format: "%.1f %@", wert, weight.einheit ?? "kg"),
|
||||
detail: weight.datum.map(DiaryUtil.format) ?? ""
|
||||
)
|
||||
}
|
||||
if let count = snap.diaryCount, count > 0 {
|
||||
infoCard(
|
||||
icon: "books.vertical.fill",
|
||||
title: "Tagebucheinträge",
|
||||
value: "\(count)",
|
||||
detail: ""
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue