feat: SW-1583 Used constants for strings
This commit is contained in:
@@ -4,14 +4,11 @@ import { useCallback, useEffect } from "react"
|
||||
import { useFormContext, useWatch } from "react-hook-form"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import {
|
||||
CloseLargeIcon,
|
||||
ErrorCircleIcon,
|
||||
PlusCircleIcon,
|
||||
PlusIcon,
|
||||
} from "../Icons"
|
||||
import { REDEMPTION } from "@/constants/booking"
|
||||
|
||||
import { CloseLargeIcon, PlusCircleIcon, PlusIcon } from "../Icons"
|
||||
|
||||
import Button from "../TempDesignSystem/Button"
|
||||
import Caption from "../TempDesignSystem/Text/Caption"
|
||||
import { Tooltip } from "../TempDesignSystem/Tooltip"
|
||||
import { GuestsRoom } from "./GuestsRoom"
|
||||
|
||||
@@ -38,7 +35,7 @@ export default function GuestsRoomsPickerDialog({
|
||||
const addRoomLabel = intl.formatMessage({ id: "Add room" })
|
||||
const doneLabel = intl.formatMessage({ id: "Done" })
|
||||
// Disable add room if booking code is either voucher or corporate cheque, or reward night is enabled
|
||||
const addRoomDisabledTextForSpecialRate = getValues("redemption")
|
||||
const addRoomDisabledTextForSpecialRate = getValues(REDEMPTION)
|
||||
? intl.formatMessage({
|
||||
id: "Multi-room booking is not available with reward night.",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user