aboutsummaryrefslogtreecommitdiff
path: root/src/index.tsx
diff options
context:
space:
mode:
authorEug-VS <eug-vs@keemail.me>2020-02-06 19:46:51 +0300
committerEug-VS <eug-vs@keemail.me>2020-02-06 19:46:51 +0300
commitd50ac5ba261d1da6f367bd0e9e02da11f9de5921 (patch)
tree8dcc8cda4559abef98de351932982e6407da965a /src/index.tsx
parent365c9cfa9345effca1ea2ea56054319c57d80d2d (diff)
downloadreact-benzin-d50ac5ba261d1da6f367bd0e9e02da11f9de5921.tar.gz
fix: get rid of all ESlint warnings
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx9
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');