diff --git a/src/components/PickItemRow.tsx b/src/components/PickItemRow.tsx index 409e3ad..3999f29 100644 --- a/src/components/PickItemRow.tsx +++ b/src/components/PickItemRow.tsx @@ -65,6 +65,11 @@ export const PickItemRow = ({ } }; + const openControls = (event: React.SyntheticEvent) => { + event.stopPropagation(); + setIsControlsOpen(true); + }; + const handleCloseControls = () => { setIsControlsOpen(false); }; @@ -139,42 +144,11 @@ export const PickItemRow = ({ )} - {isDesktop ? ( - - `0 0 0 8px ${alpha(theme.palette.primary.main, 0.15)}` - : 'none', - }} - > - - - - - - - - - setIsConfirmOpen(true)} - aria-label="Delete item" - sx={{ ml: { xs: 0, sm: 1 } }} - > - - - - ) : ( + {isNarrowScreen ? ( - )} - - {!isNarrowScreen && ( + ) : (