From 67b4c6a41533fa26a4ed05d443a44a805b0d8e9d 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: Fri, 25 Oct 2024 01:23:04 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20#154=20=EC=B9=B4=ED=85=8C=EA=B3=A0?= =?UTF-8?q?=EB=A6=AC=20=ED=95=B8=EB=93=A4=EB=A7=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/ContentSetting/ContentSettingFeature.swift | 1 + .../Feature/FeaturePokit/Sources/PokitRootFeature.swift | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Projects/Feature/FeatureContentSetting/Sources/ContentSetting/ContentSettingFeature.swift b/Projects/Feature/FeatureContentSetting/Sources/ContentSetting/ContentSettingFeature.swift index 41fe1881..f5b8ff09 100644 --- a/Projects/Feature/FeatureContentSetting/Sources/ContentSetting/ContentSettingFeature.swift +++ b/Projects/Feature/FeatureContentSetting/Sources/ContentSetting/ContentSettingFeature.swift @@ -311,6 +311,7 @@ private extension ContentSettingFeature { } return .none case .선택한_포킷_인메모리_삭제: + guard UIDevice.isPhone else { return .none } state.selectedPokit = nil return .none } diff --git a/Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift b/Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift index 30214a32..2f8f618e 100644 --- a/Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift +++ b/Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift @@ -128,6 +128,8 @@ public struct PokitRootFeature { /// 링크상세로 이동 case contentDetailTapped(BaseContentItem) case 미분류_카테고리_컨텐츠_조회 + + case 카테고리_삭제 } } @@ -332,7 +334,10 @@ private extension PokitRootFeature { func handleAsyncAction(_ action: Action.AsyncAction, state: inout State) -> Effect { switch action { case let .카테고리_삭제_API(categoryId): - return .run { _ in try await categoryClient.카테고리_삭제(categoryId) } + return .run { send in + try await categoryClient.카테고리_삭제(categoryId) + await send(.delegate(.카테고리_삭제)) + } case .미분류_카테고리_페이징_조회_API: state.domain.pageable.page += 1