feat: SW-1583 Used constants for strings

This commit is contained in:
Hrishikesh Vaipurkar
2025-03-06 16:23:16 +01:00
parent 23eaa772ea
commit 24bf96df41
12 changed files with 55 additions and 35 deletions

View File

@@ -4,6 +4,7 @@ import { zodResolver } from "@hookform/resolvers/zod"
import { useEffect, useRef, useState } from "react"
import { FormProvider, useForm } from "react-hook-form"
import { REDEMPTION } from "@/constants/booking"
import { dt } from "@/lib/dt"
import { trpc } from "@/lib/trpc/client"
import { StickyElementNameEnum } from "@/stores/sticky-position"
@@ -102,7 +103,7 @@ export default function BookingWidgetClient({
value: selectedBookingCode,
remember: false,
},
redemption: params?.searchType === "redemption",
redemption: params?.searchType === REDEMPTION,
rooms: defaultRoomsData,
},
shouldFocusError: false,