Skip to content

Commit

Permalink
[fix] #129 경고시트 안닫히는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Oct 6, 2024
1 parent 8342b99 commit 19809c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public struct ContentListFeature {
case 뷰가_나타났을때

case 링크_공유시트_해제
case 경고시트_해제
}

public enum InnerAction: Equatable {
Expand Down Expand Up @@ -193,6 +194,9 @@ private extension ContentListFeature {
case .링크_공유시트_해제:
state.shareSheetItem = nil
return .none
case .경고시트_해제:
state.alertItem = nil
return .none
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ public extension ContentListView {
PokitAlert(
"링크를 정말 삭제하시겠습니까?",
message: "함께 저장한 모든 정보가 삭제되며, \n복구하실 수 없습니다.",
confirmText: "삭제"
) { send(.컨텐츠_삭제_눌렀을때(content: content)) }
confirmText: "삭제",
action: { send(.컨텐츠_삭제_눌렀을때(content: content)) },
cancelAction: { send(.경고시트_해제) }
)
}
.task { await send(.뷰가_나타났을때, animation: .pokitDissolve).finish() }
}
Expand Down

0 comments on commit 19809c8

Please sign in to comment.