fix restoring appState (#2182)

This commit is contained in:
David Luzar 2020-09-22 21:51:49 +02:00 committed by GitHub
parent b2822f3538
commit adb1ac5788
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 74 additions and 49 deletions

View file

@ -17,7 +17,7 @@ import {
} from "./data/localStorage";
import { SAVE_TO_LOCAL_STORAGE_TIMEOUT } from "./time_constants";
import { DataState } from "./data/types";
import { ImportedDataState } from "./data/types";
import { LoadingMessage } from "./components/LoadingMessage";
import { ExcalidrawElement } from "./element/types";
import { AppState } from "./types";
@ -112,7 +112,7 @@ function ExcalidrawApp() {
// ---------------------------------------------------------------------------
const [initialState, setInitialState] = useState<{
data: DataState;
data: ImportedDataState;
user: {
name: string | null;
};