diff --git a/src/apps/loan-list/materials/selectable-material/selectable-material.tsx b/src/apps/loan-list/materials/selectable-material/selectable-material.tsx index 632f75118f..58a6f6850b 100644 --- a/src/apps/loan-list/materials/selectable-material/selectable-material.tsx +++ b/src/apps/loan-list/materials/selectable-material/selectable-material.tsx @@ -59,7 +59,9 @@ const SelectableMaterial: FC = ({ openDetailsModal(item); } }; - const handleOnKeyUp = (e: React.KeyboardEvent) => { + const handleOnKeyUp = ( + e: React.KeyboardEvent + ) => { if (openDetailsModal && (e.key === "Enter" || e.key === "Space")) { openDetailsModal(item); } @@ -150,17 +152,12 @@ const SelectableMaterial: FC = ({ {openDetailsModal && ( -
+
openDetailsModal(item)} + clickEventHandler={handleOnClick} + keyUpEventHandler={handleOnKeyUp} />
)}