feat(ios): gate Focus tab behind focus_mode_enabled feature flag
This commit is contained in:
parent
f6c85ede9e
commit
39f8a70b6b
@ -47,11 +47,13 @@ struct ContentView: View {
|
|||||||
}
|
}
|
||||||
.tag(Tab.timeline)
|
.tag(Tab.timeline)
|
||||||
|
|
||||||
|
if FeatureFlagService.shared.isEnabled("focus_mode_enabled") {
|
||||||
PomodoroView()
|
PomodoroView()
|
||||||
.tabItem {
|
.tabItem {
|
||||||
Label(Tab.focus.rawValue, systemImage: Tab.focus.icon)
|
Label(Tab.focus.rawValue, systemImage: Tab.focus.icon)
|
||||||
}
|
}
|
||||||
.tag(Tab.focus)
|
.tag(Tab.focus)
|
||||||
|
}
|
||||||
|
|
||||||
HistoryView()
|
HistoryView()
|
||||||
.tabItem {
|
.tabItem {
|
||||||
@ -73,7 +75,10 @@ struct ContentView: View {
|
|||||||
NavigationSplitView {
|
NavigationSplitView {
|
||||||
// Sidebar
|
// Sidebar
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
ForEach(Tab.allCases) { tab in
|
ForEach(Tab.allCases.filter { tab in
|
||||||
|
if tab == .focus { return FeatureFlagService.shared.isEnabled("focus_mode_enabled") }
|
||||||
|
return true
|
||||||
|
}) { tab in
|
||||||
Button {
|
Button {
|
||||||
selectedTab = tab
|
selectedTab = tab
|
||||||
} label: {
|
} label: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user