mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 01:56:27 +08:00
chore: reduce code by gndelia/codemod-replace-react-fc-typescript
This commit is contained in:
@@ -9,13 +9,13 @@ interface ListItemProps {
|
||||
style?: CSSProperties;
|
||||
}
|
||||
|
||||
export const ListItem: FC<PropsWithChildren<ListItemProps>> = ({
|
||||
export const ListItem = ({
|
||||
active,
|
||||
children,
|
||||
onClick,
|
||||
className,
|
||||
style,
|
||||
}) => {
|
||||
}: PropsWithChildren<ListItemProps>) => {
|
||||
return (
|
||||
<Container
|
||||
active={active}
|
||||
|
||||
Reference in New Issue
Block a user