fix SupportedCurrency

This commit is contained in:
root
2026-05-15 13:49:11 -04:00
parent a8c4619576
commit e1fa3f9fe5
@@ -4,7 +4,7 @@ import { useEffect, useMemo, useState } from 'react'
import Image from 'next/image'
import Link from 'next/link'
import { useParams } from 'next/navigation'
import { formatCurrency } from '@rentaldrivego/types'
import { formatCurrency, type SupportedCurrency } from '@rentaldrivego/types'
import { apiFetch } from '@/lib/api'
import { useDashboardI18n } from '@/components/I18nProvider'
import VehicleConditionSheet from '@/components/reservations/VehicleConditionSheet'
@@ -120,7 +120,7 @@ type ContractPayload = {
signatureRequired: boolean
}
invoice: {
currency: string
currency: SupportedCurrency
lineItems: Array<{
description: string
qty: number
@@ -137,7 +137,7 @@ type ContractPayload = {
payments: Array<{
id: string
amount: number
currency: string
currency: SupportedCurrency
type: string
status: string
provider: string