aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Window
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-04-18 20:26:32 +0300
committereug-vs <eug-vs@keemail.me>2020-04-18 20:26:32 +0300
commit2c5fa193541eb8b74974731d01312f73951bca17 (patch)
tree4cbc833a14487543d9ef38e66f6028d82f3978af /src/lib/Window
parent9941754be106accd5ea8ce4b6f8229dd6f4afc9b (diff)
downloadreact-benzin-2c5fa193541eb8b74974731d01312f73951bca17.tar.gz
style: correct some errors with eslint --fix
Diffstat (limited to 'src/lib/Window')
-rw-r--r--src/lib/Window/Window.tsx5
-rw-r--r--src/lib/Window/WindowSurface.tsx6
2 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/Window/Window.tsx b/src/lib/Window/Window.tsx
index 6821593..beaa672 100644
--- a/src/lib/Window/Window.tsx
+++ b/src/lib/Window/Window.tsx
@@ -47,12 +47,13 @@ const Window: React.FC<PropTypes> = ({ type, name, children }) => {
size={size}
position={position}
>
- {name &&
+ {name
+ && (
<div>
<Typography variant="h5" className={classes.header}>{name}</Typography>
<Divider />
</div>
- }
+ )}
{children}
</WindowSurface>
);
diff --git a/src/lib/Window/WindowSurface.tsx b/src/lib/Window/WindowSurface.tsx
index a65e398..1900901 100644
--- a/src/lib/Window/WindowSurface.tsx
+++ b/src/lib/Window/WindowSurface.tsx
@@ -22,7 +22,7 @@ const useStyles = makeStyles(theme => ({
'& a.MuiTypography-root': {
color: theme.palette.primary.light,
},
- }
+ },
}));
@@ -32,12 +32,12 @@ const WindowSurface: React.FC<PropTypes> = ({ size, position, children }) => {
return (
<Paper
variant="outlined"
- style={{...size, ...position}}
+ style={{ ...size, ...position }}
className={classes.surface}
>
{children}
</Paper>
- )
+ );
};