mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-15 10:15:03 +01:00
feat: recover background image from appState in ImageExportDialog
This commit is contained in:
@@ -92,7 +92,7 @@ const ImageExportModal = ({
|
|||||||
);
|
);
|
||||||
const [exportBackgroundImage, setExportBackgroundImage] = useState<
|
const [exportBackgroundImage, setExportBackgroundImage] = useState<
|
||||||
keyof typeof FANCY_BACKGROUND_IMAGES
|
keyof typeof FANCY_BACKGROUND_IMAGES
|
||||||
>(DEFAULT_FANCY_BACKGROUND_IMAGE);
|
>(appState.fancyBackgroundImageKey);
|
||||||
|
|
||||||
const [exportDarkMode, setExportDarkMode] = useState(
|
const [exportDarkMode, setExportDarkMode] = useState(
|
||||||
appState.exportWithDarkMode,
|
appState.exportWithDarkMode,
|
||||||
|
|||||||
@@ -356,4 +356,4 @@ export const FANCY_BACKGROUND_IMAGES = {
|
|||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const DEFAULT_FANCY_BACKGROUND_IMAGE: keyof typeof FANCY_BACKGROUND_IMAGES =
|
export const DEFAULT_FANCY_BACKGROUND_IMAGE: keyof typeof FANCY_BACKGROUND_IMAGES =
|
||||||
"bubbles" as const;
|
"solid" as const;
|
||||||
|
|||||||
Reference in New Issue
Block a user