fix SupportedCurrency
This commit is contained in:
@@ -4,7 +4,7 @@ import { useEffect, useMemo, useState } from 'react'
|
|||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { useParams } from 'next/navigation'
|
import { useParams } from 'next/navigation'
|
||||||
import { formatCurrency } from '@rentaldrivego/types'
|
import { formatCurrency, type SupportedCurrency } from '@rentaldrivego/types'
|
||||||
import { apiFetch } from '@/lib/api'
|
import { apiFetch } from '@/lib/api'
|
||||||
import { useDashboardI18n } from '@/components/I18nProvider'
|
import { useDashboardI18n } from '@/components/I18nProvider'
|
||||||
import VehicleConditionSheet from '@/components/reservations/VehicleConditionSheet'
|
import VehicleConditionSheet from '@/components/reservations/VehicleConditionSheet'
|
||||||
@@ -120,7 +120,7 @@ type ContractPayload = {
|
|||||||
signatureRequired: boolean
|
signatureRequired: boolean
|
||||||
}
|
}
|
||||||
invoice: {
|
invoice: {
|
||||||
currency: string
|
currency: SupportedCurrency
|
||||||
lineItems: Array<{
|
lineItems: Array<{
|
||||||
description: string
|
description: string
|
||||||
qty: number
|
qty: number
|
||||||
@@ -137,7 +137,7 @@ type ContractPayload = {
|
|||||||
payments: Array<{
|
payments: Array<{
|
||||||
id: string
|
id: string
|
||||||
amount: number
|
amount: number
|
||||||
currency: string
|
currency: SupportedCurrency
|
||||||
type: string
|
type: string
|
||||||
status: string
|
status: string
|
||||||
provider: string
|
provider: string
|
||||||
|
|||||||
Reference in New Issue
Block a user