feat: SW-1583 Used constants for strings
This commit is contained in:
@@ -4,6 +4,7 @@ import { useTransition } from "react"
|
||||
import { Form as FormRAC } from "react-aria-components"
|
||||
import { useFormContext } from "react-hook-form"
|
||||
|
||||
import { REDEMPTION } from "@/constants/booking"
|
||||
import { selectHotel, selectRate } from "@/constants/routes/hotelReservation"
|
||||
|
||||
import useLang from "@/hooks/useLang"
|
||||
@@ -49,8 +50,8 @@ export default function Form({
|
||||
...(data.bookingCode?.value
|
||||
? { bookingCode: data.bookingCode.value }
|
||||
: {}),
|
||||
// Followed current url structure to keep searchType=redemption param incase of reward night
|
||||
...(data.redemption ? { searchType: "redemption" } : {}),
|
||||
// Followed current url structure to keep searchtype=redemption param incase of reward night
|
||||
...(data.redemption ? { searchType: REDEMPTION } : {}),
|
||||
})
|
||||
|
||||
onClose()
|
||||
|
||||
Reference in New Issue
Block a user