diff options
Diffstat (limited to 'src/lib/Window')
-rw-r--r-- | src/lib/Window/Window.tsx | 5 | ||||
-rw-r--r-- | src/lib/Window/WindowSurface.tsx | 6 |
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> - ) + ); }; |