mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: replace React.FC<Props> with simple function component (#54123)
This commit is contained in:
@@ -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>;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user