fix(SW-2249): Added default currency to summary and price details modal * fix(SW-2249): Added default currency to summary and price details modal Approved-by: Hrishikesh Vaipurkar
39 lines
1003 B
TypeScript
39 lines
1003 B
TypeScript
"use client"
|
|
|
|
import { useEnterDetailsStore } from "@/stores/enter-details"
|
|
|
|
import SidePanel from "@/components/HotelReservation/SidePanel"
|
|
|
|
import SummaryUI from "./UI"
|
|
|
|
import type { SummaryProps } from "@/types/components/hotelReservation/summary"
|
|
|
|
export default function DesktopSummary({ isMember }: SummaryProps) {
|
|
const toggleSummaryOpen = useEnterDetailsStore(
|
|
(state) => state.actions.toggleSummaryOpen
|
|
)
|
|
|
|
const { booking, rooms, totalPrice, vat, defaultCurrency } =
|
|
useEnterDetailsStore((state) => ({
|
|
booking: state.booking,
|
|
rooms: state.rooms,
|
|
totalPrice: state.totalPrice,
|
|
vat: state.vat,
|
|
defaultCurrency: state.defaultCurrency,
|
|
}))
|
|
|
|
return (
|
|
<SidePanel variant="summary">
|
|
<SummaryUI
|
|
booking={booking}
|
|
rooms={rooms}
|
|
isMember={isMember}
|
|
totalPrice={totalPrice}
|
|
vat={vat}
|
|
toggleSummaryOpen={toggleSummaryOpen}
|
|
defaultCurrency={defaultCurrency}
|
|
/>
|
|
</SidePanel>
|
|
)
|
|
}
|