diff --git a/frontend/package.json b/frontend/package.json index 8f4bd24..c857f8d 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "homehub-frontend", "private": true, - "version": "0.4.2", + "version": "0.4.3", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/pages/ShoppingPage.tsx b/frontend/src/pages/ShoppingPage.tsx index 7c13e5d..5c9c63d 100644 --- a/frontend/src/pages/ShoppingPage.tsx +++ b/frontend/src/pages/ShoppingPage.tsx @@ -28,6 +28,28 @@ const inputStyle: React.CSSProperties = { const noSelect: React.CSSProperties = { userSelect: 'none' } +function QtyControls({ qty, onDecrement, onIncrement }: { qty: number; onDecrement: () => void; onIncrement: () => void }) { + const btnBase: React.CSSProperties = { + width: 32, height: 32, borderRadius: 8, border: 'none', + display: 'flex', alignItems: 'center', justifyContent: 'center', + fontSize: 18, fontWeight: 700, cursor: 'pointer', flexShrink: 0, + } + return ( +