Skip to content

Commit a271806

Browse files
valentinperignonlebojo
authored andcommitted
fix: Re-import environment
1 parent b587c79 commit a271806

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Mail/Views/Schedule/ScheduleFloatingPanel.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import RealmSwift
2626
import SwiftModalPresentation
2727
import SwiftUI
2828

29+
import MailCore
30+
2931
extension ScheduleType {
3032
var floatingPanelTitle: String {
3133
switch self {
@@ -58,6 +60,8 @@ extension View {
5860
}
5961

6062
struct ScheduleFloatingPanel: ViewModifier {
63+
@EnvironmentObject private var mailboxManager: MailboxManager
64+
6165
@State private var isShowingMyKSuiteUpgrade = false
6266
@State private var panelShouldBeShown = false
6367
@ModalState(wrappedValue: false, context: ContextKeys.schedule) private var isShowingCustomScheduleAlert: Bool
@@ -78,6 +82,7 @@ struct ScheduleFloatingPanel: ViewModifier {
7882
type: type,
7983
completionHandler: completionHandler
8084
)
85+
.environmentObject(mailboxManager)
8186
}
8287
.customAlert(isPresented: $isShowingCustomScheduleAlert) {
8388
CustomScheduleAlertView(type: type, date: initialDate, isUpdating: isUpdating, confirmAction: completionHandler) {

0 commit comments

Comments
 (0)