Skip to content

Commit 16ede23

Browse files
committed
fix: add type annotation for mouse event in handleMouseMove function
1 parent c2fcd3d commit 16ede23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function LandingPage() {
4545
const [isVisible, setIsVisible] = useState(false);
4646

4747
useEffect(() => {
48-
const handleMouseMove = (e) => {
48+
const handleMouseMove = (e: MouseEvent) => {
4949
setMousePosition({ x: e.clientX, y: e.clientY });
5050
setIsVisible(true);
5151
};

0 commit comments

Comments
 (0)