Merged in feat/SW-2398-ui-update-for-booking-codes (pull request #1862)
feat: SW-2398 UI updates booking codes * feat: SW-2398 UI updates booking codes * feat: SW-2398 Rate cards UI changes * feat: SW-2398 Optimized css with vars and chip code * feat: SW-2398 Optimized code as review comments * feat: SW-2398 Optimized code * feat: SW-2398 Optimized code and mobile UX * feat: SW-2398 Optimized code * feat: SW-2398 Fixed UI * feat: SW-2398 Updated animation Approved-by: Erik Tiekstra
This commit is contained in:
@@ -152,17 +152,13 @@ export function createRatesStore({
|
||||
room.counterRateCode
|
||||
)
|
||||
}
|
||||
let selectedFilter
|
||||
const bookingCode = room.rateCode
|
||||
? room.bookingCode
|
||||
: booking.bookingCode
|
||||
if (isRedemptionBooking) {
|
||||
selectedFilter = BookingCodeFilterEnum.All
|
||||
} else if (bookingCode) {
|
||||
selectedFilter = BookingCodeFilterEnum.Discounted
|
||||
} else {
|
||||
selectedFilter = BookingCodeFilterEnum.Regular
|
||||
}
|
||||
const selectedFilter =
|
||||
bookingCode && !isRedemptionBooking
|
||||
? BookingCodeFilterEnum.Discounted
|
||||
: BookingCodeFilterEnum.All
|
||||
|
||||
return {
|
||||
actions: {
|
||||
@@ -301,7 +297,8 @@ export function createRatesStore({
|
||||
return set(
|
||||
produce((state: RatesState) => {
|
||||
state.rooms[idx].selectedFilter = filter
|
||||
state.rooms[idx].isFetchingAdditionalRate = true
|
||||
state.rooms[idx].isFetchingAdditionalRate =
|
||||
filter === BookingCodeFilterEnum.All
|
||||
})
|
||||
)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user