Skip to content

Commit

Permalink
Merge pull request #813 from danskernesdigitalebibliotek/fix/single-v…
Browse files Browse the repository at this point in the history
…s-group-card-click

Fix single vs group loan click events
  • Loading branch information
Adamik10 authored Jan 2, 2024
2 parents 71c8fc7 + 6a9fade commit 8a3f7a2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ const StackableMaterial: FC<StackableMaterialProps & MaterialProps> = ({
}) => {
const { dueDate, identifier, periodical } = loan;

const openLoanDetailsModalHandler = () => {
openLoanDetailsModal(loan);
};

const handleOpenDueDateModal = () => {
if (openDueDateModal && dueDate) {
openDueDateModal(dueDate);
Expand All @@ -58,7 +54,7 @@ const StackableMaterial: FC<StackableMaterialProps & MaterialProps> = ({
{material && (
<MaterialInfo
arrowLabelledBy={`${loanId || identifier}-title`}
openDetailsModal={openLoanDetailsModalHandler}
openDetailsModal={handleOpenDueDateModal}
periodical={periodical}
material={material}
focused={focused}
Expand Down

0 comments on commit 8a3f7a2

Please sign in to comment.