remove unused code

This commit is contained in:
cupcakearmy 2019-03-06 00:17:11 +01:00
parent 51c6b1b461
commit 80dd00b449

View File

@ -1,16 +1,12 @@
import { useEffect, useState } from 'react' import { useEffect, useState } from 'react'
const getSize = () => {
const { innerHeight, innerWidth, outerHeight, outerWidth } = window
return { innerHeight, innerWidth, outerHeight, outerWidth }
}
export const useIsMousePresent = ()=> { export const useIsMousePresent = () => {
let [present, setPresent] = useState<boolean>(false) let [present, setPresent] = useState<boolean>(false)
useEffect(() => { useEffect(() => {
const enter = ()=> setPresent(true) const enter = () => setPresent(true)
const leave = ()=> setPresent(false) const leave = () => setPresent(false)
window.document.addEventListener('mouseenter', enter) window.document.addEventListener('mouseenter', enter)
window.document.addEventListener('mouseleave', leave) window.document.addEventListener('mouseleave', leave)
return () => { return () => {