Skip to content

Commit

Permalink
Rename useKeyPress function
Browse files Browse the repository at this point in the history
  • Loading branch information
djizco committed Aug 14, 2019
1 parent 78167eb commit 85cdc27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/hooks/useKeyPress.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect } from 'react';

export default function useKeypress(key, callback, active = true) {
export default function useKeyPress(key, callback, active = true) {
useEffect(() => {
const keypress = e => {
if (e.key === key) {
Expand Down

0 comments on commit 85cdc27

Please sign in to comment.