Skip to content

Commit 1075a21

Browse files
committed
[fix] 알림함 뒤로가기 버그 수정
1 parent 8b03677 commit 1075a21

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Projects/App/Sources/MainTab/MainTabPath.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ public extension MainTabFeature {
197197
return .send(.delegate(.로그아웃))
198198
case .path(.element(_, action: .설정(.delegate(.회원탈퇴)))):
199199
return .send(.delegate(.회원탈퇴))
200-
201200
case let .inner(.공유포킷_이동(sharedCategory: sharedCategory)):
202201
state.path.append(.링크공유(CategorySharingFeature.State(sharedCategory: sharedCategory)))
203202
return .none
@@ -229,6 +228,8 @@ public extension MainTabFeature {
229228
),
230229
categoryName: sharedCategory.categoryName
231230
)))
231+
case .path(.element(_, action: .알림함(.delegate(.alertBoxDismiss)))):
232+
state.path.popLast()
232233
return .none
233234
default: return .none
234235
}

Projects/Feature/FeatureSetting/Sources/Alert/PokitAlertBoxFeature.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public struct PokitAlertBoxFeature {
6464
public enum DelegateAction: Equatable {
6565
case moveToContentEdit(id: Int)
6666
case linkCopyDetected(URL?)
67+
case alertBoxDismiss
6768
}
6869
}
6970

@@ -117,7 +118,10 @@ private extension PokitAlertBoxFeature {
117118
case .itemSelected(let item):
118119
return .run { send in await send(.delegate(.moveToContentEdit(id: item.contentId))) }
119120
case .dismiss:
120-
return .run { _ in await dismiss() }
121+
return .run { send in
122+
// await dismiss()
123+
await send(.delegate(.alertBoxDismiss))
124+
}
121125
case .onAppear:
122126
return .run { [domain = state.domain.alertList] send in
123127
let sort: [String] = ["createdAt", "desc"]

0 commit comments

Comments
 (0)