fix: unite all price details modals to one and align on ui
This commit is contained in:
committed by
Michael Zetterberg
parent
8152aea649
commit
1f94c581ae
@@ -3,4 +3,11 @@ export enum MODAL_STEPS {
|
||||
CONFIRMATION = 2,
|
||||
}
|
||||
|
||||
export type PriceType = "points" | "money" | "voucher" | "cheque"
|
||||
export enum PriceTypeEnum {
|
||||
cheque = "cheque",
|
||||
money = "money",
|
||||
points = "points",
|
||||
voucher = "voucher",
|
||||
}
|
||||
|
||||
export type PriceType = keyof typeof PriceTypeEnum
|
||||
|
||||
@@ -3,11 +3,11 @@ import { z } from "zod"
|
||||
import { CurrencyEnum } from "@/types/enums/currency"
|
||||
|
||||
interface TPrice {
|
||||
additionalPrice?: number
|
||||
additionalPriceCurrency?: CurrencyEnum
|
||||
currency: CurrencyEnum
|
||||
price: number
|
||||
regularPrice?: number
|
||||
additionalPrice?: number
|
||||
additionalPriceCurrency?: string
|
||||
}
|
||||
|
||||
export interface Price {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { Package } from "@/types/requests/packages"
|
||||
import type {
|
||||
Product,
|
||||
RoomConfiguration,
|
||||
@@ -12,5 +11,4 @@ export interface SharedRateCardProps
|
||||
extends Pick<RoomConfiguration, "roomTypeCode"> {
|
||||
handleSelectRate: (product: Product) => void
|
||||
nights: number
|
||||
petRoomPackage: Package | undefined
|
||||
}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import type { CurrencyEnum } from "../enums/currency"
|
||||
import type { Room } from "../stores/booking-confirmation"
|
||||
|
||||
export interface BookingConfirmationProviderProps
|
||||
extends React.PropsWithChildren {
|
||||
bookingCode: string | null
|
||||
currencyCode: string
|
||||
currencyCode: CurrencyEnum
|
||||
fromDate: Date
|
||||
rooms: (Room | null)[]
|
||||
toDate: Date
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { ChildBedTypeEnum } from "@/constants/booking"
|
||||
import type { CurrencyEnum } from "../enums/currency"
|
||||
import type {
|
||||
BookingConfirmation,
|
||||
PackageSchema,
|
||||
@@ -19,7 +20,7 @@ export interface Room {
|
||||
childBedPreferences: ChildBedPreference[]
|
||||
childrenAges?: number[]
|
||||
confirmationNumber: string
|
||||
currencyCode: string
|
||||
currencyCode: CurrencyEnum
|
||||
fromDate: Date
|
||||
name: string
|
||||
packages: BookingConfirmation["booking"]["packages"]
|
||||
@@ -41,7 +42,7 @@ export interface InitialState {
|
||||
fromDate: Date
|
||||
rooms: (Room | null)[]
|
||||
toDate: Date
|
||||
currencyCode: string
|
||||
currencyCode: CurrencyEnum
|
||||
vat: number
|
||||
isVatCurrency: boolean
|
||||
formattedTotalCost: string
|
||||
|
||||
Reference in New Issue
Block a user