Use FC as SFC is deprecated in favor of it

This commit is contained in:
Yasa Akbulut 2020-03-13 11:52:01 +01:00 committed by Jannis Mattheis
parent c46bbdc01f
commit 0f7c7dd717
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import Grid from '@material-ui/core/Grid'; import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography'; import Typography from '@material-ui/core/Typography';
import React, {SFC} from 'react'; import React, {FC} from 'react';
interface IProps { interface IProps {
title: string; title: string;
@ -8,7 +8,7 @@ interface IProps {
maxWidth?: number; maxWidth?: number;
} }
const DefaultPage: SFC<IProps> = ({title, rightControl, maxWidth = 700, children}) => ( const DefaultPage: FC<IProps> = ({title, rightControl, maxWidth = 700, children}) => (
<main style={{margin: '0 auto', maxWidth}}> <main style={{margin: '0 auto', maxWidth}}>
<Grid container spacing={4}> <Grid container spacing={4}>
<Grid item xs={12} style={{display: 'flex'}}> <Grid item xs={12} style={{display: 'flex'}}>