Skip to content

Commit 7d65902

Browse files
committed
improvement: Remove unused function properties from useHover
1 parent 29646ee commit 7d65902

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dev": "start-storybook -p 3000",
3434
"storybook:build": "build-storybook -c .storybook -o docs",
3535
"test": "jest --verbose",
36-
"test:lint": "jest --bail --findRelatedTests",
36+
"test:staged": "jest --bail --findRelatedTests",
3737
"test:watch": "jest --watch",
3838
"test:prod": "npm run lint && npm run test -- --no-cache",
3939
"deploy-docs": "ts-node tools/gh-pages-publish",
@@ -47,7 +47,7 @@
4747
"src/**/*.{js,ts,json}": [
4848
"prettier --write",
4949
"npm run lint",
50-
"npm run test:lint",
50+
"npm run test:staged",
5151
"git add"
5252
]
5353
},

src/components/useHover/useHover.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { ref, onMounted, onUnmounted, Ref } from '../../api'
33
export function useHover(element: Ref<null | Element>) {
44
const isHovered = ref(false)
55

6-
const mouseEnterHandler = (e: Event) => {
6+
const mouseEnterHandler = () => {
77
isHovered.value = true
88
}
99

10-
const mouseLeaveHandler = (e: Event) => {
10+
const mouseLeaveHandler = () => {
1111
isHovered.value = false
1212
}
1313

0 commit comments

Comments
 (0)