aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Window
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-04-18 21:31:11 +0300
committerGitHub <noreply@github.com>2020-04-18 21:31:11 +0300
commitdee39c8ff8e9a417ba2b338beb942f9ad443adf3 (patch)
treea6b1bfa00f5ad925d57d3ded655a8103b911fad4 /src/lib/Window
parent62df0ff96fc9ab832212d223150862c7667d9ffc (diff)
parent0c061c74bfd473be17be755cd19c8952dc115a91 (diff)
downloadreact-benzin-dee39c8ff8e9a417ba2b338beb942f9ad443adf3.tar.gz
Merge pull request #13 from eug-vs/develop
Patch 3.1.1
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>
- )
+ );
};