From 50a4aaeede593a4b25745ec95bf482cfce543871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8F=84=ED=98=95?= <108233361+ShapeKim98@users.noreply.github.com> Date: Sat, 28 Sep 2024 18:54:43 +0900 Subject: [PATCH] =?UTF-8?q?[refactor]=20#129=20=EC=BB=A8=ED=85=90=EC=B8=A0?= =?UTF-8?q?=5F=EC=83=81=EC=84=B8=EB=B3=B4=EA=B8=B0=5Fdelegate=5F=EC=9C=84?= =?UTF-8?q?=EC=9E=84=20=EC=95=A1=EC=85=98=20delegate=EB=A1=9C=20=EC=9D=B4?= =?UTF-8?q?=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projects/App/Sources/MainTab/MainTabPath.swift | 2 +- .../FeatureRemind/Sources/Remind/RemindFeature.swift | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) 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 {