-
Notifications
You must be signed in to change notification settings - Fork 10
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
Feat/add settings modal to folder card #245
Feat/add settings modal to folder card #245
Conversation
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.
left very minor comments
src/components/FolderModal.jsx
Outdated
<SaveDeleteButtons | ||
isDisabled={false} | ||
hasDeleteButton={false} | ||
saveCallback={saveHandler} |
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.
Can we align these to the right?
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.
Resolved in 583bedc
src/components/FolderModal.jsx
Outdated
onProceed: PropTypes.func.isRequired, | ||
onCancel: PropTypes.func.isRequired, |
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.
These props are marked as isRequired
but aren't defined on the component
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.
Resolved in 697b4c7
<DeleteWarningModal | ||
onCancel={() => setCanShowDeleteWarningModal(false)} | ||
onDelete={deleteHandler} | ||
type="folder" | ||
/> |
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.
This should have been changed before, but can we also align the delete warning modal's buttons to the right?
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.
Resolved in 583bedc
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.
lgtm
Note that this PR also fixes the first point in issue #232 |
This PR adds a settings dropdown and folder renaming modal to the existing FolderCard. This allows users to rename collections/resource categories, or delete collections/resource categories with all their associated contents.
In addition, this PR is also intended to address the following issues: