Merged in fix/book-607-fix-old-links-my-stay (pull request #3365)

fix: updated to use new link structure on My Stay

* fix: updated to use new link structure on My Stay

* fix(BOOK-607): hide hotel page link if link prop is missing

* comment fixes

* fix(BOOK-607): read href from window (lcalhost not allowed)


Approved-by: Matilda Landström
This commit is contained in:
Matilda Haneling
2025-12-30 08:33:52 +00:00
parent 03b1695c9e
commit 86331a6e10
6 changed files with 80 additions and 64 deletions

View File

@@ -45,6 +45,7 @@ interface Actions {
}
export interface MyStayState {
hotelUrl: string | null
actions: Actions
allRoomsAreCancelled: boolean
bookedRoom: Room
@@ -61,17 +62,17 @@ export interface MyStayState {
isPastBooking: boolean
}
export interface InitialState
extends Pick<
MyStayState,
| "breakfastPackages"
| "hotel"
| "refId"
| "savedCreditCards"
| "isLoggedIn"
| "isPastBooking"
> {
export interface InitialState extends Pick<
MyStayState,
| "breakfastPackages"
| "hotel"
| "refId"
| "savedCreditCards"
| "isLoggedIn"
| "isPastBooking"
> {
intl: IntlShape
roomCategories: RoomCategories
rooms: BookingRoom[]
hotelUrl: string | null
}