diff options
Diffstat (limited to 'src/index.tsx')
-rw-r--r-- | src/index.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/index.tsx b/src/index.tsx index 4e1f35f..7af6098 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -13,6 +13,11 @@ import { import icon from './assets/icon.svg'; +interface RenderPropTypes { + index: number; + style: React.CSSProperties; +} + const useStyles = makeStyles(theme => ({ window: { @@ -29,13 +34,13 @@ const headerContents = { 'another page': null, }; -const renderItem = ({ index, style }: any) => { +const renderItem: React.FC<RenderPropTypes> = ({ index, style}) => { return ( <Typography variant="h3" style={style} component="div"> {index} </Typography> ); }; -const App = () => { +const App: React.FC = () => { const classes = useStyles(); const [page, setPage] = useState('home'); |