feat: recover background image from appState in ImageExportDialog
This commit is contained in:
parent
787f5d68cf
commit
9aa83da376
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user