Skip to content

Commit 76db217

Browse files
committed
lint fix
1 parent 3d870c9 commit 76db217

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,11 @@ export function generateTrigger(
422422
}, delay);
423423
};
424424

425-
const onEsc: PortalProps['onEsc'] = ({ top }) => {
425+
function onEsc({ top }: Parameters<PortalProps['onEsc']>[0]) {
426426
if (top) {
427427
triggerOpen(false);
428428
}
429-
};
429+
}
430430

431431
// ========================== Motion ============================
432432
const [inMotion, setInMotion] = React.useState(false);

0 commit comments

Comments
 (0)