Chore: Avoid explicit React.FC<Props> when possible (#64722)

This commit is contained in:
Ryan McKinley
2023-03-14 07:38:21 -07:00
committed by GitHub
parent cde1b5b162
commit d710507bc5
213 changed files with 485 additions and 498 deletions

View File

@@ -1,4 +1,4 @@
import React, { FC } from 'react';
import React from 'react';
import { useEffectOnce } from 'react-use';
import { sanitizeUrl } from '@grafana/data/src/text/sanitize';
@@ -18,7 +18,7 @@ export interface Props {
links: DashboardLink[];
}
export const DashboardLinks: FC<Props> = ({ dashboard, links }) => {
export const DashboardLinks = ({ dashboard, links }: Props) => {
const forceUpdate = useForceUpdate();
useEffectOnce(() => {