feat: recover background image from appState in ImageExportDialog

This commit is contained in:
Arnošt Pleskot 2023-08-13 20:08:03 +02:00
parent 787f5d68cf
commit 9aa83da376
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ const ImageExportModal = ({
);
const [exportBackgroundImage, setExportBackgroundImage] = useState<
keyof typeof FANCY_BACKGROUND_IMAGES
>(DEFAULT_FANCY_BACKGROUND_IMAGE);
>(appState.fancyBackgroundImageKey);
const [exportDarkMode, setExportDarkMode] = useState(
appState.exportWithDarkMode,

View File

@ -356,4 +356,4 @@ export const FANCY_BACKGROUND_IMAGES = {
} as const;
export const DEFAULT_FANCY_BACKGROUND_IMAGE: keyof typeof FANCY_BACKGROUND_IMAGES =
"bubbles" as const;
"solid" as const;