Skip to content

Commit

Permalink
fix: add click event typing for Button
Browse files Browse the repository at this point in the history
  • Loading branch information
yndx-birman committed Jun 16, 2022
1 parent aa56c65 commit a85e7c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {ReactElement} from 'react';
import React, {ReactElement, MouseEvent} from 'react';
import block from 'bem-cn-lite';

import {ControlSizes, ButtonThemes} from '../../models';
Expand All @@ -8,7 +8,7 @@ import './Button.scss';
const b = block('dc-button');

export interface ButtonProps {
onClick?: () => void;
onClick?: (e: MouseEvent) => void;
onMouseOver?: () => void;
onMouseLeave?: () => void;
className?: string;
Expand Down

0 comments on commit a85e7c0

Please sign in to comment.