mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 15:46:29 +08:00
chore: reduce code by gndelia/codemod-replace-react-fc-typescript
This commit is contained in:
@@ -39,13 +39,13 @@ interface IconButtonProps {
|
||||
hoverColor?: string;
|
||||
}
|
||||
|
||||
export const IconButton: FC<PropsWithChildren<IconButtonProps>> = ({
|
||||
export const IconButton = ({
|
||||
children,
|
||||
disabled,
|
||||
onClick,
|
||||
className,
|
||||
...props
|
||||
}) => {
|
||||
}: PropsWithChildren<IconButtonProps>) => {
|
||||
return (
|
||||
<Container
|
||||
{...props}
|
||||
|
||||
Reference in New Issue
Block a user