Skip to content

Commit

Permalink
docs: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor committed Nov 3, 2024
1 parent a7f2a96 commit e517dd0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export const Overview = {
const [text, setText] = useState<string>("-");
const ref = useRef<HTMLButtonElement>(null);

const onFocusByMouse = useCallback((_event: React.FocusEvent<HTMLButtonElement>) => {
const onFocusByMouse = useCallback((_event: FocusEvent) => {
setText("mouse");
}, []);

const onFocusByKeyboard = useCallback((_event: React.FocusEvent<HTMLButtonElement>) => {
const onFocusByKeyboard = useCallback((_event: FocusEvent) => {
setText("keyboard");
}, []);

Expand Down

0 comments on commit e517dd0

Please sign in to comment.