|
@@ -2,6 +2,7 @@ import SwiftUI
|
|
|
|
|
|
|
|
struct SidebarView: View {
|
|
struct SidebarView: View {
|
|
|
@Binding var selectedDestination: NavigationDestination
|
|
@Binding var selectedDestination: NavigationDestination
|
|
|
|
|
+ let isShowingSettings: Bool
|
|
|
let isPremium: Bool
|
|
let isPremium: Bool
|
|
|
let onUpgradeTapped: () -> Void
|
|
let onUpgradeTapped: () -> Void
|
|
|
let onManageSubscriptionTapped: () -> Void
|
|
let onManageSubscriptionTapped: () -> Void
|
|
@@ -17,7 +18,7 @@ struct SidebarView: View {
|
|
|
ForEach(NavigationDestination.allCases) { destination in
|
|
ForEach(NavigationDestination.allCases) { destination in
|
|
|
SidebarNavItem(
|
|
SidebarNavItem(
|
|
|
destination: destination,
|
|
destination: destination,
|
|
|
- isSelected: selectedDestination == destination
|
|
|
|
|
|
|
+ isSelected: !isShowingSettings && selectedDestination == destination
|
|
|
) {
|
|
) {
|
|
|
selectedDestination = destination
|
|
selectedDestination = destination
|
|
|
}
|
|
}
|