feat: remove price and currency fields from frontend and backend
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Adriano Belisario
2026-05-03 20:51:49 +00:00
parent 1e513c318f
commit cac2c223dd
7 changed files with 13 additions and 104 deletions

View File

@@ -18,8 +18,6 @@ export default function ItemForm({ item, onSubmit, onCancel, mode, error }: Item
item || {
name: '',
description: '',
price: null,
currency: 'USD',
quantity: 1,
imageUrl: '',
purchaseUrls: [],
@@ -67,23 +65,6 @@ export default function ItemForm({ item, onSubmit, onCancel, mode, error }: Item
}
/>
</div>
<div>
<label className="block text-base font-medium text-gray-700 dark:text-gray-300 mb-1">
Price
</label>
<input
type="number"
step="0.01"
className="w-full px-2 py-1.5 text-base border border-gray-300 dark:border-gray-600 rounded focus:outline-none focus:ring-2 focus:ring-indigo-500 dark:bg-gray-700 dark:text-white"
value={formData.price || ''}
onChange={(e) =>
setFormData((prev) => ({
...prev,
price: e.target.value ? parseFloat(e.target.value) : null,
}))
}
/>
</div>
<div className="md:col-span-2">
<label className="block text-base font-medium text-gray-700 dark:text-gray-300 mb-1">
Description