chore: reduce code by gndelia/codemod-replace-react-fc-typescript

This commit is contained in:
DarkSky
2022-08-12 01:26:27 +08:00
parent b4f56cda59
commit 40b617c429
73 changed files with 108 additions and 115 deletions
@@ -8,7 +8,7 @@ interface StatusTrackProps {
onClick: () => void;
}
export const StatusTrack: FC<StatusTrackProps> = ({ mode, onClick }) => {
export const StatusTrack = ({ mode, onClick }: StatusTrackProps) => {
return (
<Container onClick={onClick}>
<StatusIcon mode={mode} />