Skip to content

Commit

Permalink
feat: remove noUsed functionDefine
Browse files Browse the repository at this point in the history
  • Loading branch information
mumiao committed Dec 12, 2020
1 parent c2ff7dd commit 4591cf5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export function Button(props: React.PropsWithChildren<IButton>) {
const { className, children, size = 'normal', onClick, ...custom } = props;

const disabled = props.disabled ? disableButtonClassName : null;
const click = (e: React.MouseEvent) => onClick?.(e);

const sizeClassName =
size === 'large' ? largeButtonClassName : normalButtonClassName;
Expand All @@ -34,7 +33,7 @@ export function Button(props: React.PropsWithChildren<IButton>) {
);

return (
<a className={claNames} {...custom} onClick={click}>
<a className={claNames} {...custom}>
{children}
</a>
);
Expand Down

0 comments on commit 4591cf5

Please sign in to comment.