feat(excalidraw_wrapper): add width,height props

This commit is contained in:
Aakansha Doshi
2020-06-08 13:24:21 +05:30
parent b3cb647777
commit a4b57701b1
+6 -2
View File
@@ -4,9 +4,13 @@ import App from "./components/App";
import "./css/styles.scss";
type Props = {};
type Props = {
width?: number;
height?: number;
};
const Excalidraw = (props: Props) => {
const { width, height } = props;
useEffect(() => {
const handleTouchMove = (event: TouchEvent) => {
// @ts-ignore
@@ -23,6 +27,6 @@ const Excalidraw = (props: Props) => {
};
}, []);
return <App />;
return <App width={width} height={height} />;
};
export default Excalidraw;