Skip to content

Commit

Permalink
Merge pull request #1066 from primer/cb/ts-mouse-intent
Browse files Browse the repository at this point in the history
Migrate useMouseIntent to TypeScript
  • Loading branch information
colebemis authored Feb 22, 2021
2 parents bc345f4 + 681799f commit 09cb174
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/heavy-files-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/components": patch
---

Migrate `useMouseIntent` to TypeScript
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {useEffect} from 'react'

const useMouseIntent = () => {
useEffect(() => {
let lastActiveElement = null
let lastActiveElement: Element | null = null
let currentInputIsMouse = false

function setClass() {
Expand Down

1 comment on commit 09cb174

@vercel
Copy link

@vercel vercel bot commented on 09cb174 Feb 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.