Merged in feat/SW-3289-replace-sidepeek-hotel-reservation (pull request #2686)
feat(SW-3289): replace sidepeek * fix(SW-3289): replace sidepeek * fix(SW-3289): add wrapping prop and change prop name to buttonVariant * fix(SW-3289): replace body with typography * fix(SW-3289): fix intl message Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -97,6 +97,7 @@ export function createDetailsStore(
|
||||
return create<DetailsState>()((set) => ({
|
||||
availableBeds,
|
||||
booking: initialState.booking,
|
||||
roomCategories: initialState.roomCategories,
|
||||
breakfastPackages,
|
||||
canProceedToPayment: false,
|
||||
isSubmitting: false,
|
||||
|
||||
@@ -3,7 +3,7 @@ import { produce } from "immer"
|
||||
import { useContext } from "react"
|
||||
import { create, useStore } from "zustand"
|
||||
|
||||
import { getBookedHotelRoom } from "@scandic-hotels/trpc/routers/booking/helpers"
|
||||
import { getHotelRoom } from "@scandic-hotels/trpc/routers/booking/helpers"
|
||||
|
||||
import { mapRoomDetails } from "@/components/HotelReservation/MyStay/utils/mapRoomDetails"
|
||||
import { MyStayContext } from "@/contexts/MyStay"
|
||||
@@ -39,7 +39,7 @@ export function createMyStayStore({
|
||||
}
|
||||
|
||||
const mappedRooms = rooms.map((booking, idx) => {
|
||||
const room = getBookedHotelRoom(roomCategories, booking.roomTypeCode)
|
||||
const room = getHotelRoom(roomCategories, booking.roomTypeCode)
|
||||
return mapRoomDetails({
|
||||
booking,
|
||||
rates,
|
||||
|
||||
Reference in New Issue
Block a user