Skip to content

Commit

Permalink
fix: Use the new content unavailable style for the placeholder view (#98
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jbmorley authored Jan 16, 2024
1 parent 9638806 commit 470d361
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion macos/Overview/Interface/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ struct ContentView: View {
} else if !windowModel.summaries.isEmpty {
YearView(summaries: windowModel.summaries)
} else {
PlaceholderView(windowModel.summaries.isEmpty ? "No Calendars Selected" : "No Events")
ContentUnavailableView {
Label("No Calendars Selected", systemImage: "calendar")
} description: {
Text("Select one or more calendars from the sidebar.")
}
}
}
.navigationTitle("Overview")
Expand Down

0 comments on commit 470d361

Please sign in to comment.