Skip to content

Add Delete / Remove icon to each image #138

Closed Locked Answered by igordanchenko
pepsiamir asked this question in Q&A
Discussion options

You must be logged in to vote

It sounds like you are building on top of the Sortable Gallery example. If that's the case, then you can add onRemove callback to the PhotoFrame component and implement that callback inside the renderPhoto render function.

Here is a working example - https://codesandbox.io/p/sandbox/react-photo-album-138-9n3hh2?file=%2Fsrc%2FApp.tsx

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pepsiamir
Comment options

Answer selected by pepsiamir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants