fix(BOOK-711): Added isFloating prop to decide when the booking widget should have a border radius
Approved-by: Bianca Widstam
This commit is contained in:
@@ -32,9 +32,14 @@ const formId = "booking-widget"
|
||||
|
||||
type BookingWidgetFormProps = {
|
||||
type?: BookingWidgetType
|
||||
isFloating: boolean
|
||||
onClose: () => void
|
||||
}
|
||||
export default function Form({ type, onClose }: BookingWidgetFormProps) {
|
||||
export default function Form({
|
||||
type,
|
||||
isFloating,
|
||||
onClose,
|
||||
}: BookingWidgetFormProps) {
|
||||
const router = useRouter()
|
||||
const pathname = usePathname()
|
||||
const lang = useLang()
|
||||
@@ -106,6 +111,7 @@ export default function Form({ type, onClose }: BookingWidgetFormProps) {
|
||||
formId={formId}
|
||||
onSubmit={handleSubmit(onSubmit)}
|
||||
isSearching={isPending}
|
||||
isFloating={isFloating}
|
||||
/>
|
||||
</FormRAC>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user