feat: make steps of enter details flow dynamic depending on data
This commit is contained in:
11
hooks/useSetOverflowVisibleOnRA.ts
Normal file
11
hooks/useSetOverflowVisibleOnRA.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export default function useSetOverflowVisibleOnRA() {
|
||||
function setOverflowVisible(isOpen: boolean) {
|
||||
if (isOpen) {
|
||||
document.body.style.overflow = "visible"
|
||||
} else {
|
||||
document.body.style.overflow = ""
|
||||
}
|
||||
}
|
||||
|
||||
return setOverflowVisible
|
||||
}
|
||||
Reference in New Issue
Block a user