diff --git a/Projects/App/Sources/MainTab/MainTabPath.swift b/Projects/App/Sources/MainTab/MainTabPath.swift index 05d7b5c0..d61bc262 100644 --- a/Projects/App/Sources/MainTab/MainTabPath.swift +++ b/Projects/App/Sources/MainTab/MainTabPath.swift @@ -145,7 +145,7 @@ public extension MainTabFeature { case .pokit: return .send(.pokit(.delegate(.미분류_카테고리_컨텐츠_조회))) case .remind: - return .send(.remind(.scope(.컨텐츠_상세보기_delegate_위임))) + return .send(.remind(.delegate(.컨텐츠_상세보기_delegate_위임))) } } switch lastPath { diff --git a/Projects/Feature/FeatureRemind/Sources/Remind/RemindFeature.swift b/Projects/Feature/FeatureRemind/Sources/Remind/RemindFeature.swift index 0981eb38..da1a824c 100644 --- a/Projects/Feature/FeatureRemind/Sources/Remind/RemindFeature.swift +++ b/Projects/Feature/FeatureRemind/Sources/Remind/RemindFeature.swift @@ -102,7 +102,6 @@ public struct RemindFeature { delegate: PokitBottomSheet.Delegate, content: BaseContentItem ) - case 컨텐츠_상세보기_delegate_위임 } public enum DelegateAction: Equatable { case 링크상세(content: BaseContentItem) @@ -111,6 +110,7 @@ public struct RemindFeature { case 링크수정(id: Int) case 링크목록_안읽음 case 링크목록_즐겨찾기 + case 컨텐츠_상세보기_delegate_위임 } } /// initiallizer @@ -253,13 +253,15 @@ private extension RemindFeature { state.shareSheetItem = content return .none } - case .컨텐츠_상세보기_delegate_위임: - return allContentFetch() } } /// - Delegate Effect func handleDelegateAction(_ action: Action.DelegateAction, state: inout State) -> Effect { - return .none + switch action { + case .컨텐츠_상세보기_delegate_위임: + return allContentFetch() + default: return .none + } } func allContentFetch(animation: Animation? = nil) -> Effect {