feat/SW-1756-meeting-package-content-pages

* feat(SW-1230): Changes to script to be able to reload after soft navigation
* feat(SW-1756): Added meeting package widget on content pages

Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-03-21 13:31:33 +00:00
parent 369cc964f0
commit 91e26e30af
15 changed files with 120 additions and 53 deletions

View File

@@ -0,0 +1,30 @@
"use client"
import { useRef } from "react"
import { StickyElementNameEnum } from "@/stores/sticky-position"
import MeetingPackageWidget from "@/components/MeetingPackageWidget"
import useStickyPosition from "@/hooks/useStickyPosition"
import styles from "./stickyMeetingPackageWidget.module.css"
interface StickyMeetingPackageWidgetProps {
destination?: string
}
export default function StickyMeetingPackageWidget({
destination,
}: StickyMeetingPackageWidgetProps) {
const ref = useRef<HTMLDivElement>(null)
useStickyPosition({
ref,
name: StickyElementNameEnum.MEETING_PACKAGE_WIDGET,
})
return (
<div ref={ref} className={styles.wrapper}>
<MeetingPackageWidget destination={destination} />
</div>
)
}