Merge branch 'main' into codex/refactor-additemscreen-for-quantity-input

This commit is contained in:
beatz174-bit authored and GitHub committed 2025-11-23 12:09:30 +10:00
commit 6337f69b63
6 files changed
+120 -76

No files matched your search

+3 -12
View File
@@ -1,8 +1,7 @@
import { Chip, Stack, Typography } from '@mui/material';
import { PickItem, PickItemStatus } from '../models/PickItem';
import { Add, Delete } from '@mui/icons-material';
import { Button, Checkbox, Stack, Typography } from '@mui/material';
import { PickItem } from '../models/PickItem';
import { Product } from '../models/Product';
import { useLongPress } from '../hooks/useLongPress';
import { useSwipe } from '../hooks/useSwipe';
interface PickItemRowProps {
item: PickItem;
@@ -13,12 +12,6 @@ interface PickItemRowProps {
onSwipeRight: () => void;
}
const statusColor: Record<PickItemStatus, 'default' | 'success' | 'warning'> = {
pending: 'default',
picked: 'success',
skipped: 'warning',
};
export const PickItemRow = ({
item,
product,
@@ -39,8 +32,6 @@ export const PickItemRow = ({
justifyContent="space-between"
spacing={1}
sx={{ p: 1, borderRadius: 1, bgcolor: 'background.paper', boxShadow: 1 }}
{...longPressHandlers}
{...swipeHandlers}
>
<div>
<Typography variant="subtitle1">{product?.name ?? 'Unknown product'}</Typography>