-
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/stacked card click #689
Fix/stacked card click #689
Conversation
src/apps/loan-list/materials/stackable-material/stackable-material.tsx
Outdated
Show resolved
Hide resolved
src/apps/loan-list/materials/stackable-material/stackable-material.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.
I have some minor thoughts
In the stackable material component.
openDueDateModal={() => | ||
openDueDateModal && dueDate && openDueDateModal(dueDate) | ||
} | ||
openDueDateModal={() => handleOpenDueDateModal()} |
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.
Change to openDueDateModal={handleOpenDueDateModal}
here and below
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.
What difference does it make @JacobArrow ?
src/apps/loan-list/materials/stackable-material/stackable-material.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! Now it is also much easier to understand whats going on.
I had some small thoughts for following best practices :)
a0fcf4f
into
danskernesdigitalebibliotek:demo_2023-48-0
Link to issue
https://reload.atlassian.net/browse/DDFLSBP-280
Description
This PR fixes an issue where on the loan list, when clicking on a stacked loans card, only the first material would open in a modal. Now We open group modal.
Screenshot of the result
n/a
Additional comments or questions
n/a