feat(F-193): completed feature
This commit is contained in:
@@ -151,6 +151,19 @@ export default async function ProductPage({ params }: Props) {
|
||||
<div className="mt-2 text-sm text-gray-500">
|
||||
{formatPrice(netCents)} sin IVA ({vatPercent}%)
|
||||
</div>
|
||||
{/* F-193: expiry and weight */}
|
||||
{(product as { expirationDate?: string }).expirationDate && (
|
||||
<div className="mt-1 text-sm text-gray-400">
|
||||
Caduca: {new Date((product as { expirationDate: string }).expirationDate).toLocaleDateString('es-ES')}
|
||||
</div>
|
||||
)}
|
||||
{primaryVariant?.weightGrams && (
|
||||
<div className="mt-1 text-sm text-gray-400">
|
||||
Peso: {primaryVariant.weightGrams >= 1000
|
||||
? `${(primaryVariant.weightGrams / 1000).toFixed(2)} kg`
|
||||
: `${primaryVariant.weightGrams} g`}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
) : (
|
||||
<div className="mt-6 bg-gray-50 rounded-xl p-6">
|
||||
|
||||
Reference in New Issue
Block a user