diff options
author | Eug-VS <eug-vs@keemail.me> | 2020-02-06 19:46:51 +0300 |
---|---|---|
committer | Eug-VS <eug-vs@keemail.me> | 2020-02-06 19:46:51 +0300 |
commit | d50ac5ba261d1da6f367bd0e9e02da11f9de5921 (patch) | |
tree | 8dcc8cda4559abef98de351932982e6407da965a /src/lib/Header | |
parent | 365c9cfa9345effca1ea2ea56054319c57d80d2d (diff) | |
download | react-benzin-d50ac5ba261d1da6f367bd0e9e02da11f9de5921.tar.gz |
fix: get rid of all ESlint warnings
Diffstat (limited to 'src/lib/Header')
-rw-r--r-- | src/lib/Header/Header.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Header/Header.tsx b/src/lib/Header/Header.tsx index 7f3d35d..233eacb 100644 --- a/src/lib/Header/Header.tsx +++ b/src/lib/Header/Header.tsx @@ -23,7 +23,7 @@ interface PropTypes { setPage: (newPage: string) => void; } -const useStyles = makeStyles((theme: any) => ({ +const useStyles = makeStyles(theme => ({ root: { background: theme.palette.background.elevation2, color: theme.palette.text.primary, @@ -49,7 +49,7 @@ const useStyles = makeStyles((theme: any) => ({ const Header: React.FC<PropTypes> = ({ logo, contents, page, setPage }) => { const classes = useStyles(); - const handleChange = (event: React.ChangeEvent<{}>, newPage: string) => { + const handleChange = (event: React.ChangeEvent<{}>, newPage: string): void => { setPage(newPage); }; |