Skip to content

Commit

Permalink
spike(PortDemo): removed missing type breaking compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvisraymond-uchicago committed Jan 22, 2025
1 parent e99efae commit 125b869
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const isEnterOrSpace = (event) =>
event.key === 'Enter' ||
event.key === ' ' ||
event.key === 'Spacebar' ||
event.keycode === '32' ||
event.keycode === '13';
import { KeyboardEvent } from 'react';

const isEnterOrSpace = (event: KeyboardEvent) =>
event.key === 'Enter' || event.key === ' ' || event.key === 'Spacebar';

export default isEnterOrSpace;

0 comments on commit 125b869

Please sign in to comment.