Skip to content

Commit 4591cf5

Browse files
committed
feat: remove noUsed functionDefine
1 parent c2ff7dd commit 4591cf5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/button/index.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export function Button(props: React.PropsWithChildren<IButton>) {
2121
const { className, children, size = 'normal', onClick, ...custom } = props;
2222

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

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

3635
return (
37-
<a className={claNames} {...custom} onClick={click}>
36+
<a className={claNames} {...custom}>
3837
{children}
3938
</a>
4039
);

0 commit comments

Comments
 (0)