From 1dfabf498a2eea9e7076a7d56d939cd5236c9f4a Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Thu, 17 Jan 2019 09:27:43 +0100 Subject: [PATCH] chore: Replace the deprecated SFC with FC --- public/app/core/components/Animations/FadeIn.tsx | 4 ++-- public/app/core/components/Footer/Footer.tsx | 4 ++-- public/app/core/components/LayoutSelector/LayoutSelector.tsx | 4 ++-- public/app/core/components/PageLoader/PageLoader.tsx | 4 ++-- .../core/components/ToggleButtonGroup/ToggleButtonGroup.tsx | 4 ++-- public/app/core/components/sidemenu/DropDownChild.tsx | 4 ++-- public/app/core/components/sidemenu/SideMenuDropDown.tsx | 4 ++-- public/app/core/components/sidemenu/SignIn.tsx | 4 ++-- public/app/core/components/sidemenu/TopSection.tsx | 4 ++-- public/app/core/components/sidemenu/TopSectionItem.tsx | 4 ++-- .../dashboard/dashgrid/PanelHeader/PanelHeaderMenuItem.tsx | 4 ++-- .../app/features/dashboard/panel_editor/DataSourceOption.tsx | 4 ++-- public/app/features/datasources/DashboardsTable.tsx | 4 ++-- public/app/features/datasources/settings/BasicSettings.tsx | 4 ++-- public/app/features/datasources/settings/ButtonRow.tsx | 4 ++-- public/app/features/explore/Error.tsx | 4 ++-- public/app/features/org/OrgProfile.tsx | 4 ++-- public/app/features/plugins/PluginList.tsx | 4 ++-- public/app/features/plugins/PluginListItem.tsx | 4 ++-- public/app/features/users/UsersTable.tsx | 4 ++-- .../datasource/stackdriver/components/AlignmentPeriods.tsx | 4 ++-- .../plugins/datasource/stackdriver/components/Alignments.tsx | 4 ++-- .../datasource/stackdriver/components/AnnotationsHelp.tsx | 4 ++-- .../datasource/stackdriver/components/SimpleSelect.tsx | 4 ++-- 24 files changed, 48 insertions(+), 48 deletions(-) diff --git a/public/app/core/components/Animations/FadeIn.tsx b/public/app/core/components/Animations/FadeIn.tsx index e12f22486f1..ea9a92d5f0f 100644 --- a/public/app/core/components/Animations/FadeIn.tsx +++ b/public/app/core/components/Animations/FadeIn.tsx @@ -1,4 +1,4 @@ -import React, { SFC } from 'react'; +import React, { FC } from 'react'; import Transition from 'react-transition-group/Transition'; interface Props { @@ -8,7 +8,7 @@ interface Props { unmountOnExit?: boolean; } -export const FadeIn: SFC = props => { +export const FadeIn: FC = props => { const defaultStyle = { transition: `opacity ${props.duration}ms linear`, opacity: 0, diff --git a/public/app/core/components/Footer/Footer.tsx b/public/app/core/components/Footer/Footer.tsx index 59ec913c34a..101168beb66 100644 --- a/public/app/core/components/Footer/Footer.tsx +++ b/public/app/core/components/Footer/Footer.tsx @@ -1,4 +1,4 @@ -import React, { SFC } from 'react'; +import React, { FC } from 'react'; import { Tooltip } from '@grafana/ui'; interface Props { @@ -9,7 +9,7 @@ interface Props { newGrafanaVersion: string; } -export const Footer: SFC = React.memo(({appName, buildVersion, buildCommit, newGrafanaVersionExists, newGrafanaVersion}) => { +export const Footer: FC = React.memo(({appName, buildVersion, buildCommit, newGrafanaVersionExists, newGrafanaVersion}) => { return (