use the right TLEventHandlers (#1486)

### Change Type

Change the `TLEventHandlers` of `onPointerLeave` to use `onPointerLeave`

- [x] `internal` — Any other changes that don't affect the published
package (will not publish a new version)

### Test Plan

I don't think we need to test something here because it's just a small
change that doesn't affect anything; just a type IMO

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
This commit is contained in:
Judicael 2023-06-09 16:57:31 +03:00 committed by GitHub
parent d71d15124c
commit d6be4bf26a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ export class EditingShape extends StateNode {
}
}
onPointerLeave: TLEventHandlers['onPointerEnter'] = (info) => {
onPointerLeave: TLEventHandlers['onPointerLeave'] = (info) => {
switch (info.target) {
case 'shape': {
this.editor.setHoveredId(null)

View file

@ -48,7 +48,7 @@ export class Idle extends StateNode {
}
}
onPointerLeave: TLEventHandlers['onPointerEnter'] = (info) => {
onPointerLeave: TLEventHandlers['onPointerLeave'] = (info) => {
switch (info.target) {
case 'shape': {
this.editor.setHoveredId(null)

View file

@ -26,7 +26,7 @@ export class Idle extends StateNode {
}
}
onPointerLeave: TLEventHandlers['onPointerEnter'] = (info) => {
onPointerLeave: TLEventHandlers['onPointerLeave'] = (info) => {
switch (info.target) {
case 'shape': {
this.editor.setHoveredId(null)