From 0f7c7dd717ea6376c7b7e57110fd30f7b951327b Mon Sep 17 00:00:00 2001 From: Yasa Akbulut Date: Fri, 13 Mar 2020 11:52:01 +0100 Subject: [PATCH] Use FC as SFC is deprecated in favor of it --- ui/src/common/DefaultPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/common/DefaultPage.tsx b/ui/src/common/DefaultPage.tsx index f9586f1..75cf683 100644 --- a/ui/src/common/DefaultPage.tsx +++ b/ui/src/common/DefaultPage.tsx @@ -1,6 +1,6 @@ import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/core/Typography'; -import React, {SFC} from 'react'; +import React, {FC} from 'react'; interface IProps { title: string; @@ -8,7 +8,7 @@ interface IProps { maxWidth?: number; } -const DefaultPage: SFC = ({title, rightControl, maxWidth = 700, children}) => ( +const DefaultPage: FC = ({title, rightControl, maxWidth = 700, children}) => (