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:
Erik Tiekstra
2026-01-28 12:02:42 +00:00
parent 70838060e5
commit ead34c07ee
9 changed files with 74 additions and 45 deletions

View File

@@ -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>