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'
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)
useEffect(() => {
const enter = ()=> setPresent(true)
const leave = ()=> setPresent(false)
const enter = () => setPresent(true)
const leave = () => setPresent(false)
window.document.addEventListener('mouseenter', enter)
window.document.addEventListener('mouseleave', leave)
return () => {