Skip to content

Commit

Permalink
[refactor] #129 컨텐츠_상세보기_delegate_위임 액션 delegate로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Sep 28, 2024
1 parent 9695d78 commit 50a4aae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Projects/App/Sources/MainTab/MainTabPath.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ public struct RemindFeature {
delegate: PokitBottomSheet.Delegate,
content: BaseContentItem
)
case 컨텐츠_상세보기_delegate_위임
}
public enum DelegateAction: Equatable {
case 링크상세(content: BaseContentItem)
Expand All @@ -111,6 +110,7 @@ public struct RemindFeature {
case 링크수정(id: Int)
case 링크목록_안읽음
case 링크목록_즐겨찾기
case 컨텐츠_상세보기_delegate_위임
}
}
/// initiallizer
Expand Down Expand Up @@ -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<Action> {
return .none
switch action {
case .컨텐츠_상세보기_delegate_위임:
return allContentFetch()
default: return .none
}
}

func allContentFetch(animation: Animation? = nil) -> Effect<Action> {
Expand Down

0 comments on commit 50a4aae

Please sign in to comment.