feat(api): add PATCH endpoint for updating product status with authentication

This commit is contained in:
Nils-Johan Gynther
2026-04-19 19:15:54 +02:00
parent 151a7e335d
commit 829b7a80fc
3 changed files with 45 additions and 4 deletions
+1 -2
View File
@@ -119,12 +119,11 @@ export default function PantryList({ items, inventoryByProductId }: Props) {
<button
type="button"
onClick={() => handleRemove(item.id, displayName)}
disabled={isPending}
style={{
background: 'none',
border: 'none',
color: '#c00',
cursor: isPending ? 'not-allowed' : 'pointer',
cursor: 'pointer',
fontSize: '1.1rem',
padding: '0.2rem 0.5rem',
lineHeight: 1,