mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Avoid explicit React.FC<Props> when possible (#64722)
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user