Skip to content

Commit

Permalink
fix: Forgot haptics for FiltersView
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuz0u committed Feb 7, 2022
1 parent 7f8dac2 commit b76591a
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions EhPanda/View/Detail/DataFlow/DetailSearchStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ let detailSearchReducer = Reducer<DetailSearchState, DetailSearchAction, DetailS
case: /DetailSearchState.Route.quickSearch,
hapticClient: \.hapticClient
)
.haptics(
unwrapping: \.route,
case: /DetailSearchState.Route.filters,
hapticClient: \.hapticClient
)
.binding(),
filtersReducer.pullback(
state: \.filtersState,
Expand Down
5 changes: 5 additions & 0 deletions EhPanda/View/Home/DataFlow/FrontpageStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ let frontpageReducer = Reducer<FrontpageState, FrontpageAction, FrontpageEnviron
return .none
}
}
.haptics(
unwrapping: \.route,
case: /FrontpageState.Route.filters,
hapticClient: \.hapticClient
)
.binding(),
filtersReducer.pullback(
state: \.filtersState,
Expand Down
5 changes: 5 additions & 0 deletions EhPanda/View/Home/DataFlow/PopularStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ let popularReducer = Reducer<PopularState, PopularAction, PopularEnvironment>.co
return .none
}
}
.haptics(
unwrapping: \.route,
case: /PopularState.Route.filters,
hapticClient: \.hapticClient
)
.binding(),
filtersReducer.pullback(
state: \.filtersState,
Expand Down
5 changes: 5 additions & 0 deletions EhPanda/View/Home/DataFlow/WatchedStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ let watchedReducer = Reducer<WatchedState, WatchedAction, WatchedEnvironment>.co
case: /WatchedState.Route.quickSearch,
hapticClient: \.hapticClient
)
.haptics(
unwrapping: \.route,
case: /WatchedState.Route.filters,
hapticClient: \.hapticClient
)
.binding(),
filtersReducer.pullback(
state: \.filtersState,
Expand Down
5 changes: 5 additions & 0 deletions EhPanda/View/Search/SearchRootStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ let searchRootReducer = Reducer<SearchRootState, SearchRootAction, SearchRootEnv
case: /SearchRootState.Route.quickSearch,
hapticClient: \.hapticClient
)
.haptics(
unwrapping: \.route,
case: /SearchRootState.Route.filters,
hapticClient: \.hapticClient
)
.binding(),
searchReducer.pullback(
state: \.searchState,
Expand Down
5 changes: 5 additions & 0 deletions EhPanda/View/Search/SearchStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ let searchReducer = Reducer<SearchState, SearchAction, SearchEnvironment>.combin
case: /SearchState.Route.quickSearch,
hapticClient: \.hapticClient
)
.haptics(
unwrapping: \.route,
case: /SearchState.Route.filters,
hapticClient: \.hapticClient
)
.binding(),
filtersReducer.pullback(
state: \.filtersState,
Expand Down

0 comments on commit b76591a

Please sign in to comment.