Add loading state (#1027)

* add loading state

* update snapshots

* add border radius

* fix comment breaking build jsx
This commit is contained in:
David Luzar 2020-03-26 18:28:26 +01:00 committed by GitHub
parent d8708cb14f
commit cac2dda5ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 214 additions and 85 deletions

View file

@ -5,6 +5,7 @@ export const DEFAULT_FONT = "20px Virgil";
export function getDefaultAppState(): AppState {
return {
isLoading: false,
draggingElement: null,
resizingElement: null,
multiElement: null,
@ -47,6 +48,7 @@ export function clearAppStateForLocalStorage(appState: AppState) {
isResizing,
collaborators,
isCollaborating,
isLoading,
...exportedState
} = appState;
return exportedState;