fix: initial state
This commit is contained in:
parent
efc20eaa53
commit
f2611f5d1f
@ -5,6 +5,7 @@ import {
|
||||
DEFAULT_FONT_FAMILY,
|
||||
DEFAULT_FONT_SIZE,
|
||||
DEFAULT_TEXT_ALIGN,
|
||||
EXPORT_BACKGROUND_IMAGES,
|
||||
EXPORT_SCALES,
|
||||
THEME,
|
||||
} from "./constants";
|
||||
@ -100,7 +101,8 @@ export const getDefaultAppState = (): Omit<
|
||||
pendingImageElementId: null,
|
||||
showHyperlinkPopup: false,
|
||||
selectedLinearElement: null,
|
||||
exportBackgroundImage: DEFAULT_EXPORT_BACKGROUND_IMAGE,
|
||||
exportBackgroundImage:
|
||||
EXPORT_BACKGROUND_IMAGES[DEFAULT_EXPORT_BACKGROUND_IMAGE].path,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -238,7 +238,7 @@ export type AppState = {
|
||||
pendingImageElementId: ExcalidrawImageElement["id"] | null;
|
||||
showHyperlinkPopup: false | "info" | "editor";
|
||||
selectedLinearElement: LinearElementEditor | null;
|
||||
exportBackgroundImage: string;
|
||||
exportBackgroundImage: string | null;
|
||||
};
|
||||
|
||||
export type UIAppState = Omit<
|
||||
|
Loading…
x
Reference in New Issue
Block a user