style: autoformat/lint the codebase

This commit is contained in:
Jean-Philippe Sirois
2019-10-07 07:21:54 -04:00
parent 153295f543
commit 583b7ea61a
14 changed files with 134 additions and 134 deletions
+2 -1
View File
@@ -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" : ""