aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/components/Window/Window.tsx4
-rw-r--r--src/lib/components/Window/WindowSurface.tsx4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/components/Window/Window.tsx b/src/lib/components/Window/Window.tsx
index 4821cb3..ea8e264 100644
--- a/src/lib/components/Window/Window.tsx
+++ b/src/lib/components/Window/Window.tsx
@@ -9,7 +9,6 @@ import { SurfaceSize, SurfacePosition } from './types';
interface PropTypes {
type: 'primary' | 'secondary' | 'mono';
name?: string;
- children?: any;
}
@@ -21,9 +20,8 @@ const useStyles = makeStyles((theme: any) => ({
}));
-const Window = (props: PropTypes) => {
+const Window: React.FC<PropTypes> = ({ type, name, children }) => {
const classes = useStyles();
- const { type, name, children } = props;
const size: SurfaceSize = {
height: '85vh',
diff --git a/src/lib/components/Window/WindowSurface.tsx b/src/lib/components/Window/WindowSurface.tsx
index aaaa984..701a767 100644
--- a/src/lib/components/Window/WindowSurface.tsx
+++ b/src/lib/components/Window/WindowSurface.tsx
@@ -8,7 +8,6 @@ import { SurfaceSize, SurfacePosition } from './types';
interface PropTypes {
size: SurfaceSize;
position: SurfacePosition;
- children?: any;
}
@@ -27,9 +26,8 @@ const useStyles = makeStyles((theme: any) => ({
}));
-const WindowSurface = (props: PropTypes) => {
+const WindowSurface: React.FC<PropTypes> = ({ size, position, children }) => {
const classes = useStyles();
- const { size, position, children } = props;
return (
<Paper