aboutsummaryrefslogtreecommitdiff
path: root/src/lib
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/lib
parent365c9cfa9345effca1ea2ea56054319c57d80d2d (diff)
downloadreact-benzin-d50ac5ba261d1da6f367bd0e9e02da11f9de5921.tar.gz
fix: get rid of all ESlint warnings
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Header/Header.tsx4
-rw-r--r--src/lib/SmartList/SmartList.tsx2
-rw-r--r--src/lib/Window/Window.tsx2
-rw-r--r--src/lib/Window/WindowSurface.tsx2
4 files changed, 5 insertions, 5 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);
};
diff --git a/src/lib/SmartList/SmartList.tsx b/src/lib/SmartList/SmartList.tsx
index c889719..22cd3b2 100644
--- a/src/lib/SmartList/SmartList.tsx
+++ b/src/lib/SmartList/SmartList.tsx
@@ -5,7 +5,7 @@ import AutoSizer from 'react-virtualized-auto-sizer';
interface RenderPropTypes {
index: number;
- style: any;
+ style: React.CSSProperties;
}
interface PropTypes {
diff --git a/src/lib/Window/Window.tsx b/src/lib/Window/Window.tsx
index ea8e264..6821593 100644
--- a/src/lib/Window/Window.tsx
+++ b/src/lib/Window/Window.tsx
@@ -12,7 +12,7 @@ interface PropTypes {
}
-const useStyles = makeStyles((theme: any) => ({
+const useStyles = makeStyles(theme => ({
header: {
padding: theme.spacing(1, 0, 1, 2),
background: theme.palette.background.elevation2,
diff --git a/src/lib/Window/WindowSurface.tsx b/src/lib/Window/WindowSurface.tsx
index 701a767..a65e398 100644
--- a/src/lib/Window/WindowSurface.tsx
+++ b/src/lib/Window/WindowSurface.tsx
@@ -11,7 +11,7 @@ interface PropTypes {
}
-const useStyles = makeStyles((theme: any) => ({
+const useStyles = makeStyles(theme => ({
surface: {
position: 'absolute',
display: 'flex',