File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Feature/FeatureSetting/Sources/Alert Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 " ]
You can’t perform that action at this time.
0 commit comments