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

This commit is contained in:
Ryan McKinley
2023-03-14 16:38:21 +02:00
committed by GitHub
parent cde1b5b162
commit d710507bc5
213 changed files with 485 additions and 498 deletions
@@ -1,4 +1,4 @@
import React, { FC, useState } from 'react';
import React, { useState } from 'react';
import { useAsync } from 'react-use';
import { getBackendSrv } from '@grafana/runtime';
@@ -31,7 +31,7 @@ const navModel = {
export interface Props extends GrafanaRouteComponentProps<{ code: string }> {}
export const SignupInvitedPage: FC<Props> = ({ match }) => {
export const SignupInvitedPage = ({ match }: Props) => {
const code = match.params.code;
const [initFormModel, setInitFormModel] = useState<FormModel>();
const [greeting, setGreeting] = useState<string>();