2
0
Эх сурвалжийг харах

feat: recover background image from appState in ImageExportDialog

Arnošt Pleskot 2 жил өмнө
parent
commit
9aa83da376

+ 1 - 1
src/components/ImageExportDialog.tsx

@@ -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,

+ 1 - 1
src/constants.ts

@@ -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;