Rename FilterBarView to MailboxTopBarView

This commit is contained in:
Maciej Gomółka
2026-04-17 16:53:29 +02:00
committed by Maciej Gomółka
parent bd10be103e
commit eee3e83cc0
2 changed files with 7 additions and 7 deletions
@@ -149,7 +149,7 @@ extension MailboxListView {
@ViewBuilder
private func filterBar() -> some View {
FilterBarView(state: $model.state.filterBar, onSelectAllTapped: model.onSelectAllTapped)
MailboxTopBarView(state: $model.state.filterBar, onSelectAllTapped: model.onSelectAllTapped)
.background(DS.Color.Background.norm.shadow(DS.Shadows.raisedBottom, isVisible: !isListAtTop))
.zIndex(1)
}
@@ -20,7 +20,7 @@ import ProtonUIFoundations
import SwiftUI
import proton_app_uniffi
struct FilterBarView: View {
struct MailboxTopBarView: View {
@ScaledMetric var scale: CGFloat = 1
@Binding var state: FilterBarState
@@ -204,11 +204,11 @@ private struct UnreadFilterIdentifiers {
@State var stateSelectAllDisabled: FilterBarState = .init(visibilityMode: .selectionMode, selectAll: .selectionLimitReached)
var body: some View {
VStack {
FilterBarView(state: $stateRegular) { fatalError("button should be hidden") }
FilterBarView(state: $stateRegularUnknownCount) { fatalError("button should be hidden") }
FilterBarView(state: $stateSelectAllAvailable) { print("select all tapped") }
FilterBarView(state: $stateSelectAllAllSelected) { print("select all tapped") }
FilterBarView(state: $stateSelectAllDisabled) { fatalError("button should be disabled") }
MailboxTopBarView(state: $stateRegular) { fatalError("button should be hidden") }
MailboxTopBarView(state: $stateRegularUnknownCount) { fatalError("button should be hidden") }
MailboxTopBarView(state: $stateSelectAllAvailable) { print("select all tapped") }
MailboxTopBarView(state: $stateSelectAllAllSelected) { print("select all tapped") }
MailboxTopBarView(state: $stateSelectAllDisabled) { fatalError("button should be disabled") }
}
.border(.red)
}