feat(SW-1534): Added booking code functionality from either searchParams or pageSettings
Approved-by: Christian Andolf
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
fragment PageSettings on PageSettings {
|
||||
hide_booking_widget
|
||||
booking_code
|
||||
}
|
||||
|
||||
@@ -258,6 +258,14 @@ export const isBookingWidgetHidden = cache(
|
||||
}
|
||||
)
|
||||
|
||||
export const getPageSettingsBookingCode = cache(
|
||||
async function getMemoizedPageSettingsBookingCode() {
|
||||
const lang = getLang()
|
||||
const pageSettings = await getPageSettings(lang)
|
||||
return pageSettings?.page.settings.booking_code ?? ""
|
||||
}
|
||||
)
|
||||
|
||||
export const getJobylonFeed = cache(async function getMemoizedJobylonFeed() {
|
||||
return serverClient().partner.jobylon.feed.get()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user