Prettier format all js files

This commit is contained in:
George Drummond
2019-01-24 09:38:43 -05:00
parent 20604e6ca9
commit 619bc9fe59
32 changed files with 553 additions and 443 deletions

View File

@@ -1,11 +1,11 @@
export const isNotInVerticalViewport = (el) => {
export const isNotInVerticalViewport = el => {
const bounds = el.getBoundingClientRect()
if (bounds.top < 0) {
return true
}
if (bounds.bottom > ((window.innerHeight - 50))) {
if (bounds.bottom > window.innerHeight - 50) {
// 50 is a magic number to offset for the sticky footer
// see variables.scss for $footer-height
return true