mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 17:25:59 +02:00
style: autoformat/lint the codebase
This commit is contained in:
@@ -13,7 +13,8 @@ export const useLockBodyScroll = () => {
|
||||
}
|
||||
|
||||
const body = documentGlobal && document.querySelector("body")
|
||||
const gatsbyNode = documentGlobal && document.querySelector<HTMLDivElement>("#___gatsby")
|
||||
const gatsbyNode =
|
||||
documentGlobal && document.querySelector<HTMLDivElement>("#___gatsby")
|
||||
if (body && gatsbyNode) {
|
||||
body.style.overflow = locked ? "hidden" : ""
|
||||
gatsbyNode.style.overflowY = locked ? "scroll" : ""
|
||||
|
||||
Reference in New Issue
Block a user