Chore: replace React.FC<Props> with simple function component (#54123)

This commit is contained in:
Ryan McKinley
2022-08-24 13:54:34 -07:00
committed by GitHub
parent 277ea836b6
commit b483ac322f
53 changed files with 63 additions and 76 deletions

View File

@@ -104,7 +104,7 @@ interface Props {
className?: string;
}
const ComponentA: React.FC<Props> = ({ className }) => {
function ComponentA({ className }: Props) {
const finalClassName = cx(
className,
css`
@@ -113,5 +113,5 @@ const ComponentA: React.FC<Props> = ({ className }) => {
);
return <div className={finalClassName}>As red as you can ge</div>;
};
}
```