diff --git a/apps/dashboard/src/app/(dashboard)/dashboard/contracts/[id]/page.tsx b/apps/dashboard/src/app/(dashboard)/dashboard/contracts/[id]/page.tsx index 272dc08..5112e35 100644 --- a/apps/dashboard/src/app/(dashboard)/dashboard/contracts/[id]/page.tsx +++ b/apps/dashboard/src/app/(dashboard)/dashboard/contracts/[id]/page.tsx @@ -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