diff --git a/app/qr-test/page.tsx b/app/qr-test/page.tsx index 8ec82ec..092fe38 100644 --- a/app/qr-test/page.tsx +++ b/app/qr-test/page.tsx @@ -12,7 +12,7 @@ export default function QRTestPage() { const [fuelRate, setFuelRate] = useState('100'); const [fuelAmount, setFuelAmount] = useState('500'); const [fuelUnit, setFuelUnit] = useState<'liters' | 'gallons'>('liters'); - const [customAmount, setCustomAmount] = useState('5'); + const [customAmount, setCustomAmount] = useState('50'); const [vesselName, setVesselName] = useState(''); const [imo, setImo] = useState(''); @@ -38,7 +38,7 @@ export default function QRTestPage() { }, custom: { calculationType: 'custom' as const, - customAmount: 5, + customAmount: 100, }, }; @@ -284,14 +284,18 @@ export default function QRTestPage() { {calculationType === 'custom' && (
setCustomAmount(e.target.value)} + placeholder="e.g., 100" className="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" /> +

+ Monetary amount to spend on carbon offsets (calculator will convert to CO₂) +

)} diff --git a/src/utils/qrDataValidator.ts b/src/utils/qrDataValidator.ts index 088cd4e..824e857 100644 --- a/src/utils/qrDataValidator.ts +++ b/src/utils/qrDataValidator.ts @@ -165,7 +165,7 @@ export function getQRDataDescription(data: QRCalculatorData): string { case 'distance': return `Distance-based: ${data.distance} nm at ${data.speed} knots`; case 'custom': - return `Custom: ${data.customAmount} tons CO₂`; + return `Custom: $${data.customAmount} USD`; default: return 'Unknown calculation type'; }