Skip to content

Commit

Permalink
Remove unnecessary onClick mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
kimjoar authored and cjcenizal committed Mar 28, 2017
1 parent d1eed94 commit a2d045e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ui_framework/components/button/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,12 @@ const KuiButton = ({
className,
type,
icon,
onClick,
children,
...rest
}) => {
return (
<button
className={getClassName({ className, type, icon })}
onClick={onClick}
{ ...rest }
>
<ContentWithIcon
Expand All @@ -90,7 +88,6 @@ KuiButton.propTypes = {
children: PropTypes.node,
isLoading: PropTypes.bool,
type: PropTypes.oneOf(BUTTON_TYPES),
onClick: PropTypes.func,
className: PropTypes.string,
};

Expand Down Expand Up @@ -131,7 +128,6 @@ KuiLinkButton.propTypes = {
const KuiSubmitButton = ({
className,
type,
onClick,
children,
...rest
}) => {
Expand All @@ -140,7 +136,6 @@ const KuiSubmitButton = ({
type="submit"
value={children}
className={getClassName({ className, type })}
onClick={onClick}
{ ...rest }
/>
);
Expand All @@ -149,7 +144,6 @@ const KuiSubmitButton = ({
KuiSubmitButton.propTypes = {
children: PropTypes.string,
type: PropTypes.oneOf(BUTTON_TYPES),
onClick: PropTypes.func,
className: PropTypes.string,
};

Expand Down

0 comments on commit a2d045e

Please sign in to comment.