Skip to content

Commit 91cd201

Browse files
committed
Add offline banner to dashboard manually
1 parent d7ca39c commit 91cd201

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/DashboardView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ struct DashboardView: View {
162162

163163
storePlanBanner
164164
.renderedIf(connectivityStatus != .notReachable)
165+
166+
OfflineBannerViewRepresentable()
167+
.frame(height: OfflineBannerView.height)
168+
.renderedIf(connectivityStatus == .notReachable)
165169
}
166170
.sheet(isPresented: $showingSupportForm) {
167171
supportForm

WooCommerce/Classes/ViewRelated/Dashboard/DashboardViewHostingController.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ final class DashboardViewHostingController: UIHostingController<DashboardView> {
7575
await viewModel.reloadAllData()
7676
}
7777
}
78-
79-
override var shouldShowOfflineBanner: Bool {
80-
return true
81-
}
8278
}
8379

8480
// MARK: Private helpers

0 commit comments

Comments
 (0)