Show month name instead of "Monthly Check-in" as card title
Fixes #16 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -447,9 +447,16 @@ struct MonthlyCheckInCard: View {
|
||||
)
|
||||
}
|
||||
|
||||
private var currentMonthLabel: String {
|
||||
let formatter = DateFormatter()
|
||||
formatter.dateFormat = "LLLL yyyy"
|
||||
let effectiveMonth = MonthlyCheckInStore.effectiveMonth(for: Date(), relativeTo: Date())
|
||||
return formatter.string(from: effectiveMonth)
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 12) {
|
||||
Text("Monthly Check-in")
|
||||
Text(currentMonthLabel)
|
||||
.font(.headline)
|
||||
|
||||
Text("Keep a calm, deliberate rhythm. Update your sources and add a short note.")
|
||||
|
||||
Reference in New Issue
Block a user