File tree Expand file tree Collapse file tree
Neki-iOS/Features/Archive/Sources/Presentation/Sources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,17 +80,21 @@ extension ArchiveImageFooter {
8080 action: onDownload
8181 )
8282
83- selectionButton (
84- title: " 사진 복제 " ,
85- icon: Image ( isEnabled ? . iconDuplicateFill : . iconDuplicate) ,
86- action: onDuplicate ?? { }
87- )
83+ if let onDuplicate = onDuplicate {
84+ selectionButton (
85+ title: " 사진 복제 " ,
86+ icon: Image ( isEnabled ? . iconDuplicateFill : . iconDuplicate) ,
87+ action: onDuplicate
88+ )
89+ }
8890
89- selectionButton (
90- title: " 사진 이동 " ,
91- icon: Image ( isEnabled ? . iconMoveFill : . iconMove) ,
92- action: onMove ?? { }
93- )
91+ if let onMove = onMove {
92+ selectionButton (
93+ title: " 사진 이동 " ,
94+ icon: Image ( isEnabled ? . iconMoveFill : . iconMove) ,
95+ action: onMove
96+ )
97+ }
9498
9599 selectionButton (
96100 title: " 삭제 " ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ struct ArchiveAllPhotosView: View {
3939 onDownload: { store. send ( . onTapDownloadButton) } ,
4040 onDelete: { showDeleteAlert = true } ,
4141 onDuplicate: { store. send ( . onTapDuplicateButton) } ,
42- onMove: { store . send ( . onTapMoveButton ) }
42+ onMove: nil
4343 )
4444 }
4545 }
You can’t perform that action at this time.
0 commit comments