more fixes

This commit is contained in:
Matt 2025-05-13 20:42:16 +02:00
parent 7be9fc3722
commit c29b15cd0b

View File

@ -366,16 +366,20 @@ export function OffsetOrder({ tons, monetaryAmount, onBack, calculatorType }: Pr
<div className="bg-gray-50 rounded-lg p-6 mb-6"> <div className="bg-gray-50 rounded-lg p-6 mb-6">
<h3 className="text-lg font-semibold text-gray-900 mb-4">Order Summary</h3> <h3 className="text-lg font-semibold text-gray-900 mb-4">Order Summary</h3>
<div className="space-y-4"> <div className="space-y-4">
<div className="flex justify-between"> <div className="flex justify-between">
<span className="text-gray-600">Amount to Offset:</span> <span className="text-gray-600">Amount to Offset:</span>
<span className="font-medium">{tons.toFixed(2)} tons CO</span> <span className="font-medium">{tons.toFixed(2)} tons CO</span>
</div> </div>
<div className="flex justify-between"> <div className="flex justify-between">
<span className="text-gray-600">Portfolio Distribution:</span> <span className="text-gray-600">Portfolio Distribution:</span>
<span className="font-medium">Automatically optimized</span> <span className="font-medium">Automatically optimized</span>
</div> </div>
<div className="border-t pt-4"> <div className="flex justify-between">
<span className="text-gray-600">Cost per Ton:</span>
<span className="font-medium">{renderPortfolioPrice(portfolio)}</span>
</div>
<div className="border-t pt-4">
<div className="flex justify-between"> <div className="flex justify-between">
<span className="text-gray-900 font-semibold">Total Cost:</span> <span className="text-gray-900 font-semibold">Total Cost:</span>
<span className="text-gray-900 font-semibold"> <span className="text-gray-900 font-semibold">