Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Added remove photos from album feature #98

Merged
merged 4 commits into from
Dec 26, 2021
Merged

Added remove photos from album feature #98

merged 4 commits into from
Dec 26, 2021

Conversation

akshaypithadiya
Copy link
Collaborator

No description provided.

Comment on lines 21 to 22
const { imageList } = useContext(CreateAlbumContext);
const { removeImageList } = useContext(RemoveAlbumPhotosContext);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we somehow merge the states and export single provider called AlbumsProvider -> it should cater to both create and remove

Comment on lines +38 to 44
const AlbumPhoto = ({
imageUrl,
imageId,
removeImageList,
setRemoveImageList,
}) => {
let history = useHistory();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this component or we can re-use similar existing one by handling props and null values?

@akshaypithadiya akshaypithadiya merged commit 7fafbc1 into master Dec 26, 2021
@akshaypithadiya akshaypithadiya deleted the issue-94 branch December 26, 2021 10:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants