Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aapis committed May 18, 2023
1 parent 174fd27 commit 203ed32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions DLPrototype/Views/Today/LogTable/LogTable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ struct LogTable: View, Identifiable {

@Environment(\.managedObjectContext) var moc
@EnvironmentObject public var updater: ViewUpdater
@EnvironmentObject public var ce: CoreDataCalendarEvent

// MARK: body view
var body: some View {
Expand All @@ -48,6 +49,8 @@ struct LogTable: View, Identifiable {
}
} else {
CalendarToday()
.id(updater.ids["today.calendarStrip"])
.environmentObject(ce)
}

if showSidebar {
Expand Down
7 changes: 0 additions & 7 deletions DLPrototype/Views/Today/Today.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ struct Today: View {
VStack(alignment: .leading) {
editor
// actions
calendarStrip
table
}
.frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity)
Expand Down Expand Up @@ -106,12 +105,6 @@ struct Today: View {
.environmentObject(ce)
}

var calendarStrip: some View {
CalendarToday()
.id(updater.ids["today.calendarStrip"])
.environmentObject(ce)
}

// TODO: convert to current in progress event status update UX/UI
// @ViewBuilder private var actions: some View {
// HStack {
Expand Down

0 comments on commit 203ed32

Please sign in to comment.