Merged in feature/LOY-415-sj-widget (pull request #3074)

feat(LOY-415): Add SJ widget

* feat(LOY-415): Add SJ widget
can be added as dynamic content to Content Pages

* feat(LOY-415): init SJ widget with a useEffect instead due to onLoad only being called the first time

* make sure to only initialize the SJ widget once and handle navigation


Approved-by: Erik Tiekstra
This commit is contained in:
Joakim Jäderberg
2025-11-05 13:05:15 +00:00
parent 6e91d538c2
commit 645a99a844
4 changed files with 59 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ import SignupFormWrapper from "@/components/Blocks/DynamicContent/SignupFormWrap
import NextStay from "@/components/Blocks/DynamicContent/Stays/NextStay"
import PreviousStays from "@/components/Blocks/DynamicContent/Stays/Previous"
import UpcomingStays from "@/components/Blocks/DynamicContent/Stays/Upcoming"
import { SJWidget } from "@/components/SJWidget"
import JobylonFeed from "./JobylonFeed"
@@ -84,6 +85,8 @@ function DynamicContentBlocks(props: DynamicContentProps) {
preamble={dynamic_content.subtitle}
/>
)
case DynamicContentEnum.Blocks.components.sj_widget:
return <SJWidget />
default:
return null
}