Update product-modal.tsx
This commit is contained in:
@@ -282,7 +282,7 @@ const ProductBasicInfo: React.FC<{
|
||||
name="lowStockThreshold"
|
||||
type="number"
|
||||
min="1"
|
||||
step={productData.unitType === 'gr' ? '0.1' : '1'}
|
||||
step={productData.unitType === 'gr' || productData.unitType === 'ml' ? '0.1' : '1'}
|
||||
value={productData.lowStockThreshold || 10}
|
||||
onChange={handleChange}
|
||||
placeholder="10"
|
||||
@@ -297,7 +297,7 @@ const ProductBasicInfo: React.FC<{
|
||||
name="currentStock"
|
||||
type="number"
|
||||
min="0"
|
||||
step={productData.unitType === 'gr' ? '0.1' : '1'}
|
||||
step={productData.unitType === 'gr' || productData.unitType === 'ml' ? '0.1' : '1'}
|
||||
value={productData.currentStock || 0}
|
||||
onChange={handleChange}
|
||||
placeholder="0"
|
||||
@@ -424,6 +424,7 @@ const UnitTypeSelect: React.FC<{
|
||||
<SelectItem value="pcs">Pieces (pcs)</SelectItem>
|
||||
<SelectItem value="gr">Grams (gr)</SelectItem>
|
||||
<SelectItem value="kg">Kilograms (kg)</SelectItem>
|
||||
<SelectItem value="ml">Milliliters (ml)</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
<Button type="button" variant="outline" size="sm" disabled>
|
||||
|
||||
Reference in New Issue
Block a user