move the excalidraw props to correct file and typo fix (#1907)

This commit is contained in:
Aakansha Doshi 2020-07-11 18:43:20 +05:30 committed by GitHub
parent 0ee2c15929
commit 953cd5563c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 11 deletions

View file

@ -55,10 +55,9 @@ import {
import Portal from "./Portal";
import { renderScene } from "../renderer";
import { AppState, GestureEvent, Gesture } from "../types";
import { AppState, GestureEvent, Gesture, ExcalidrawProps } from "../types";
import {
ExcalidrawElement,
ExcalidrawProps,
ExcalidrawTextElement,
NonDeleted,
ExcalidrawGenericElement,
@ -126,7 +125,7 @@ import {
LOCAL_STORAGE_KEY_COLLAB_FORCE_FLAG,
} from "../constants";
import {
INITAL_SCENE_UPDATE_TIMEOUT,
INITIAL_SCENE_UPDATE_TIMEOUT,
TAP_TWICE_TIMEOUT,
SYNC_FULL_SCENE_INTERVAL_MS,
TOUCH_CTX_MENU_TIMEOUT,
@ -247,7 +246,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
height: window.innerHeight,
};
constructor(props: any) {
constructor(props: ExcalidrawProps) {
super(props);
const defaultAppState = getDefaultAppState();
@ -1035,7 +1034,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
// initial SCENE_UPDATE message
const initializationTimer = setTimeout(
initialize,
INITAL_SCENE_UPDATE_TIMEOUT,
INITIAL_SCENE_UPDATE_TIMEOUT,
);
const updateScene = (