-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #2351 & cleanup AddToCollectionList
component
#2353
Fix #2351 & cleanup AddToCollectionList
component
#2353
Conversation
…llectionList # Conflicts: # client/modules/IDE/components/AddToCollectionList.jsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
I fixed some merge conflicts and also updated the props passed in IDEOverlays
to reflect the new changes. Besides that, I don't think there should be any other major additional changes, but let me know if you spot anything!
@raclim there is definitely in a problem in the |
Thanks for catching that! I'll create a new issue now to quickly update it. |
Fixes #2363
Fixes #2351
Progress on #2179
Changes:
AddToCollectionList
to a function component.projectId
-- the id of the project to add to the chosen collection.useSelector
anduseDispatch
.Promise
from thegetCollections
action so that the component knows when loading is complete.getProject
fetch as the project details are not used.if
condition on the title as a user is always adding to their own collections, even when it's another user's project.AddToCollectionList.AnothersTitle
can be removed from translation files, but I didn't do this.PropTypes
.mapStateToProps
andmapDispatchToProps
often include unused props #2179). Only/actions/collections
is used. The other four are not needed.I have verified that this pull request:
npm run lint
)npm run test
)develop
branch.Fixes #123