Skip to content

Commit 1e9ddd0

Browse files
refactor: var naming
1 parent 7f290e4 commit 1e9ddd0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/components/Tooltip/Tooltip.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ const Tooltip = ({
141141
if (!event) {
142142
return
143143
}
144-
const e = event as MouseEvent
145-
const p = {
146-
x: e.clientX,
147-
y: e.clientY,
144+
const mouseEvent = event as MouseEvent
145+
const mousePosition = {
146+
x: mouseEvent.clientX,
147+
y: mouseEvent.clientY,
148148
}
149-
handleTooltipPosition(p)
150-
setLastFloatPosition(p)
149+
handleTooltipPosition(mousePosition)
150+
setLastFloatPosition(mousePosition)
151151
}
152152

153153
const handleClickTooltipAnchor = () => {
@@ -161,8 +161,8 @@ const Tooltip = ({
161161
}
162162
}
163163

164-
const handleClickOutsideAnchor = (e: MouseEvent) => {
165-
if (e.target === activeAnchor.current) {
164+
const handleClickOutsideAnchor = (event: MouseEvent) => {
165+
if (event.target === activeAnchor.current) {
166166
return
167167
}
168168
setShow(false)

0 commit comments

Comments
 (0)