fix: standalone /book page applies saved widget settings from backend

BookingWidgetStandalonePage now fetches widgetSettings from the public
config API and applies them (color, language, mode, etc.) instead of
always falling back to URL param defaults. URL params still work as
overrides if present.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-07 22:36:44 +03:00
parent 0eababe4e0
commit 08d6629ae8
2 changed files with 43 additions and 27 deletions

View File

@@ -1655,6 +1655,17 @@ export interface WidgetConfig {
currency: string
rooms: WidgetRoom[]
categories: WidgetCategory[]
widgetSettings?: {
primaryColor: string
language: string
roomDisplayMode: string
minNights: number
showRental: boolean
showPromo: boolean
allowExtraBeds: boolean
allowChildren: boolean
hotelName: string
}
}
export interface WidgetBookingPayload {