chore: Replace the deprecated SFC with FC

This commit is contained in:
Johannes Schill
2019-01-17 09:27:43 +01:00
parent 71121e1dbe
commit 1dfabf498a
24 changed files with 48 additions and 48 deletions

View File

@@ -1,4 +1,4 @@
import React, { SFC } from 'react';
import React, { FC } from 'react';
import { Tooltip } from '@grafana/ui';
interface Props {
@@ -10,7 +10,7 @@ interface Props {
tooltipInfo?: any;
}
export const DataSourceOptions: SFC<Props> = ({ label, placeholder, name, value, onChange, tooltipInfo }) => {
export const DataSourceOptions: FC<Props> = ({ label, placeholder, name, value, onChange, tooltipInfo }) => {
const dsOption = (
<div className="gf-form gf-form--flex-end">
<label className="gf-form-label">{label}</label>