fix(BOOK-146): Synced default Sidepeek and SelfControlled Sidepeek in regards of functionality and looks
Approved-by: Bianca Widstam
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user