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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user