|
@@ -1,5 +1,5 @@
|
|
|
import cx from 'classnames';
|
|
|
-import React, { ReactChild } from 'react';
|
|
|
+import React, { SyntheticEvent } from 'react';
|
|
|
import { Icon } from '../icon/Icon';
|
|
|
import styles from './button.css';
|
|
|
|
|
@@ -7,7 +7,7 @@ type IconButtonProps = {
|
|
|
icon: string,
|
|
|
buttonClassName?: string,
|
|
|
iconClassName?: string,
|
|
|
- onClick?: () => void
|
|
|
+ onClick?: (event: SyntheticEvent) => void
|
|
|
};
|
|
|
|
|
|
function IconButton ({icon, buttonClassName, iconClassName, onClick}: IconButtonProps) {
|