-
Notifications
You must be signed in to change notification settings - Fork 8
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 group loan modal #754
Fix group loan modal #754
Conversation
if (openDueDateModal && dueDate) { | ||
openDueDateModal(dueDate); | ||
return; | ||
} | ||
openLoanDetailsModal(loan); |
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 feels weird somehow
Why not just a regular if/else or just
(openDueDateModal && dueDate) ? openDueDateModal(dueDate) : openLoanDetailsModal(loan)
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.
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.
Correct, but you can either return the whole statement or remove the curly braces
const handleOpenDueDateModal = () =>
openDueDateModal && dueDate
? openDueDateModal(dueDate)
: openDueDateModal(dueDate);
OR
const handleOpenDueDateModal = () => {
return openDueDateModal && dueDate
? openDueDateModal(dueDate)
: openDueDateModal(dueDate);
};
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.
I had some thoughts, but other than that LGTM
When clicking on the title, two modals would open - one event triggered by clicking the title on the card, and the other triggered by the card itself.
DDF would like to be able to define what stands before the actual number
It is not possible to pay through our solution. Thus we are removing all of these payment instances.
Instead of the date when the material was returned to the library.
src/apps/loan-list/materials/stackable-material/material-info.tsx
Outdated
Show resolved
Hide resolved
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.
Nice job!
In order not to repeat the same twice.
Link to issue
https://reload.atlassian.net/browse/DDFLSBP-295
Description
A couple of elements are removed from the group modal for loan fees.
Screenshot of the result
AFTER:
BEFORE:
Additional comments or questions
n/a