Skip to content

Commit 25eecb3

Browse files
committed
[Chore] #202 - 모든 사진 보기에서는 ArchiveImageFooter에 사진 이동 숨기기
1 parent 156b913 commit 25eecb3

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

Neki-iOS/Features/Archive/Sources/Presentation/Sources/Components/ArchiveImageFooter.swift

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff 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: "삭제",

Neki-iOS/Features/Archive/Sources/Presentation/Sources/View/ArchiveAllPhotosView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)