fix(BOOK-146): Synced default Sidepeek and SelfControlled Sidepeek in regards of functionality and looks

Approved-by: Bianca Widstam
This commit is contained in:
Erik Tiekstra
2025-12-03 07:45:43 +00:00
parent c976079df1
commit a6b3904b2a
6 changed files with 45 additions and 121 deletions

View File

@@ -0,0 +1,13 @@
import useSetOverflowVisibleOnRA from '@scandic-hotels/common/hooks/useSetOverflowVisibleOnRA'
import { useEffect } from 'react'
export function KeepBodyVisible() {
const toggle = useSetOverflowVisibleOnRA()
useEffect(() => {
toggle(true)
return () => toggle(false)
}, [toggle])
return null
}