From d50ac5ba261d1da6f367bd0e9e02da11f9de5921 Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Thu, 6 Feb 2020 19:46:51 +0300 Subject: fix: get rid of all ESlint warnings --- src/index.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/index.tsx') 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 = ({ index, style}) => { return ( {index} ); }; -const App = () => { +const App: React.FC = () => { const classes = useStyles(); const [page, setPage] = useState('home'); -- cgit v1.2.3