Skip to content

Commit

Permalink
X2-7391: Cannot Refund Guest through Original Form of Payment (#277)
Browse files Browse the repository at this point in the history
* Added ID as a third param to popoverList item

* Added a proptype
  • Loading branch information
khomyakov authored Oct 19, 2023
1 parent e2e6e46 commit 0aa989f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Popover/PopoverList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ PopoverList.propTypes = {
children: PropTypes.node.isRequired,
};

const Item = ({ name, isActive = false, position, total, children, className, onClickItem, ...rest }) => {
const onClick = (event) => onClickItem(event, name);
const Item = ({ name, isActive = false, id = null, position, total, children, className, onClickItem, ...rest }) => {
const onClick = (event) => onClickItem(event, name, id);

return (
<div
Expand All @@ -66,6 +66,7 @@ Item.propTypes = {
total: PropTypes.number,
name: PropTypes.string.isRequired,
isActive: PropTypes.bool,
id: PropTypes.string,
children: PropTypes.node.isRequired,
className: PropTypes.string,
onClickItem: PropTypes.func.isRequired,
Expand Down

0 comments on commit 0aa989f

Please sign in to comment.