aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Window/WindowSurface.tsx
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-10-10 14:15:36 +0300
committerGitHub <noreply@github.com>2020-10-10 14:15:36 +0300
commit0b1bbde30d4d396f8e760c59d35689353ea012a2 (patch)
tree521284ca3aefc0f66e9e9df0f6affc82baba8ba6 /src/lib/Window/WindowSurface.tsx
parent513f28b126bac41a3a4853a2c4466f0f24070a66 (diff)
parentff32e155b003997d2f71cc8ff62f5f0063592824 (diff)
downloadreact-benzin-0b1bbde30d4d396f8e760c59d35689353ea012a2.tar.gz
Merge pull request #16 from eug-vs/develop
Release v4.0.0
Diffstat (limited to 'src/lib/Window/WindowSurface.tsx')
-rw-r--r--src/lib/Window/WindowSurface.tsx44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/lib/Window/WindowSurface.tsx b/src/lib/Window/WindowSurface.tsx
deleted file mode 100644
index 1900901..0000000
--- a/src/lib/Window/WindowSurface.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-import React from 'react';
-
-import { Paper, makeStyles } from '@material-ui/core';
-
-import { SurfaceSize, SurfacePosition } from './types';
-
-
-interface PropTypes {
- size: SurfaceSize;
- position: SurfacePosition;
-}
-
-
-const useStyles = makeStyles(theme => ({
- surface: {
- position: 'absolute',
- display: 'flex',
- flexDirection: 'column',
- overflowY: 'auto',
- scrollbarColor: `${theme.palette.secondary.dark} ${theme.palette.secondary.light}`,
-
- '& a.MuiTypography-root': {
- color: theme.palette.primary.light,
- },
- },
-}));
-
-
-const WindowSurface: React.FC<PropTypes> = ({ size, position, children }) => {
- const classes = useStyles();
-
- return (
- <Paper
- variant="outlined"
- style={{ ...size, ...position }}
- className={classes.surface}
- >
- {children}
- </Paper>
- );
-};
-
-
-export default WindowSurface;