From 0aa989f8220c655e0d0d3cb6ba7a06fb87567667 Mon Sep 17 00:00:00 2001 From: Oleksandr Khomyakov Date: Thu, 19 Oct 2023 14:35:31 +0300 Subject: [PATCH] X2-7391: Cannot Refund Guest through Original Form of Payment (#277) * Added ID as a third param to popoverList item * Added a proptype --- src/components/Popover/PopoverList.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Popover/PopoverList.jsx b/src/components/Popover/PopoverList.jsx index a6fc1e284..97f636204 100644 --- a/src/components/Popover/PopoverList.jsx +++ b/src/components/Popover/PopoverList.jsx @@ -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 (