Skip to content

Commit

Permalink
Handle action
Browse files Browse the repository at this point in the history
  • Loading branch information
pinarol committed Nov 20, 2024
1 parent bcc9356 commit d0dc3ec
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ struct AvatarPickerView<ImageEditor: ImageEditorView>: View {
onFailedUploadTapped: { failedUploadInfo in
uploadError = failedUploadInfo
isUploadErrorDialogPresented = true
},
onAvatarActionTap: { avatar, action in
// TODO: Replace
print("Avatar action tapped: \(avatar.id), \(action.rawValue)")
}
)
.padding(.horizontal, Constants.horizontalPadding)
Expand All @@ -304,6 +308,10 @@ struct AvatarPickerView<ImageEditor: ImageEditorView>: View {
onFailedUploadTapped: { failedUploadInfo in
uploadError = failedUploadInfo
isUploadErrorDialogPresented = true
},
onAvatarActionTap: { avatar, action in
// TODO: Replace
print("Avatar action tapped: \(avatar.id), \(action.rawValue)")
}
)
.padding(.top, .DS.Padding.medium)
Expand Down

0 comments on commit d0dc3ec

Please sign in to comment.