diff --git a/Projects/App/Sources/MainTab/MainTabPath.swift b/Projects/App/Sources/MainTab/MainTabPath.swift index d61bc262..09714197 100644 --- a/Projects/App/Sources/MainTab/MainTabPath.swift +++ b/Projects/App/Sources/MainTab/MainTabPath.swift @@ -90,7 +90,8 @@ public extension MainTabFeature { /// - 포킷 `추가` 버튼 눌렀을 때 case .delegate(.포킷추가하기), - .path(.element(_, action: .링크추가및수정(.delegate(.포킷추가하기)))): + .path(.element(_, action: .링크추가및수정(.delegate(.포킷추가하기)))), + .pokit(.delegate(.포킷추가_버튼_눌렀을때)): state.path.append(.포킷추가및수정(PokitCategorySettingFeature.State(type: .추가))) return .none @@ -164,7 +165,8 @@ public extension MainTabFeature { state.path.append(.링크추가및수정(ContentSettingFeature.State(contentId: id))) return .none /// - 링크 추가하기 - case .delegate(.링크추가하기): + case .delegate(.링크추가하기), + .pokit(.delegate(.링크추가_버튼_눌렀을때)): state.categoryId = nil state.path.append(.링크추가및수정(ContentSettingFeature.State(urlText: state.link))) state.link = nil diff --git a/Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift b/Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift index 87ec21cf..30b93937 100644 --- a/Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift +++ b/Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift @@ -72,6 +72,8 @@ public struct PokitRootFeature { case 분류_버튼_눌렀을때 case 케밥_버튼_눌렀을때(BaseCategoryItem) case 미분류_케밥_버튼_눌렀을때(BaseContentItem) + case 포킷추가_버튼_눌렀을때 + case 링크추가_버튼_눌렀을때 case 카테고리_눌렀을때(BaseCategoryItem) case 컨텐츠_항목_눌렀을때(BaseContentItem) case 링크_공유_완료되었을때 @@ -123,6 +125,9 @@ public struct PokitRootFeature { /// 링크상세로 이동 case contentDetailTapped(BaseContentItem) case 미분류_카테고리_컨텐츠_조회 + + case 포킷추가_버튼_눌렀을때 + case 링크추가_버튼_눌렀을때 } } @@ -209,6 +214,12 @@ private extension PokitRootFeature { case .미분류_케밥_버튼_눌렀을때(let selectedItem): state.selectedUnclassifiedItem = selectedItem return .run { send in await send(.inner(.카테고리_시트_활성화(true))) } + + case .포킷추가_버튼_눌렀을때: + return .run { send in await send(.delegate(.포킷추가_버튼_눌렀을때)) } + + case .링크추가_버튼_눌렀을때: + return .run { send in await send(.delegate(.링크추가_버튼_눌렀을때)) } case .카테고리_눌렀을때(let category): return .run { send in await send(.delegate(.categoryTapped(category))) } diff --git a/Projects/Feature/FeaturePokit/Sources/PokitRootView.swift b/Projects/Feature/FeaturePokit/Sources/PokitRootView.swift index 482b8afc..741c383e 100644 --- a/Projects/Feature/FeaturePokit/Sources/PokitRootView.swift +++ b/Projects/Feature/FeaturePokit/Sources/PokitRootView.swift @@ -126,6 +126,7 @@ private extension PokitRootView { VStack { PokitCaution( type: .카테고리없음, + action: { send(.포킷추가_버튼_눌렀을때) } ) .padding(.top, 36) @@ -170,6 +171,7 @@ private extension PokitRootView { VStack { PokitCaution( type: .미분류_링크없음, + action: { send(.링크추가_버튼_눌렀을때) } ) .padding(.top, 36)