fix SupportedCurrency
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user