fix(SW-3691): Setup one prettier config for whole repo * Setup prettierrc in root and remove other configs Approved-by: Joakim Jäderberg Approved-by: Linus Flood
14 lines
312 B
TypeScript
14 lines
312 B
TypeScript
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
|
|
}
|